Avoid partial application in React components
Roman Liutikov
373

What do you think about ‘onNav’ as a factory of functions w/ memoization? So you can “build” the handlers on the fly in the parent component and cache them for future renders, keeping your child components as dumber as possible (no need to pass them all the props needed to invoke the callback)…