4 ms·
Higher order functions are not such a complicated concept. Just a function passed to a function. You use functions, right?
by pka 10y ago
Higher order functions are not such a complicated concept. Just a function passed to a function.
You use functions, right?
- daliwali 10y agoYes, but why is the question. I think that is seriously not given much thought and people just accept man-made complexity as essential. It seems tautological to say that higher order components extend components, but it is only due to the design decisions of the React authors that application code must fit its own paradigm, not the other way around.
- pka 10y agoOn the contrary, it's about reducing complexity. You don't have to worry about mixins, classes, prototypes, inhertiance. Just plain old functions. Can't get simpler than that.