3 ms·
I know what you mean with regard to event handlers being passed down to children and children of children and so on and the complexity that can bring. I haven't
by fleshweasel 10y ago
I know what you mean with regard to event handlers being passed down to children and children of children and so on and the complexity that can bring. I haven't used redux, but I understand it as being an attempt to simplify that kind of problem.
I haven't written any higher order components myself, unless you consider parameterizing event handlers in props to be higher order.
- Existenceblinks 10y agoComposing pure functions makes more sense, passing function as argument in functional languages is way better than having the higher order component thing. Sure javascript can do that but in the react world, "component" thing go with you everywhere regardless of presentation or dumbest components.