3 ms·
I remember a while ago, if you were to mention HOC wrapper hell in React community, most folks would jump to defend it. Eventually, React team accepted that it
by hbrn 4y ago
I remember a while ago, if you were to mention HOC wrapper hell in React community, most folks would jump to defend it.
Eventually, React team accepted that it is a problem, and presented hooks as a solution. The very same people who would defend wrapper hell yesterday, would start crapping on it today.
I think you're right that hooks are flawed and not the final answer, but the community won't accept it until "React gods" say so. It would be quite funny if React team eventually decides to go compiler way (a la Svelte) and all the people grasping for reasons to hate Svelte would have to change their opinions again.
- cercatrova 4y agoReact is already looking to use a compiler, but for memoization rather than fully removing the VDOM.
- pharmakom 4y agoTotally agree. The ultimate solution (imo) will come from the functional programming world and it will be a component monad, just it won’t look like that to the end user. It will probably leverage function-star in JS. It will enable unit testing of all component interactions and everyone will say it’s the best thing since sliced bread. Clojure devs will look on wondering why it took so long. Just my hunch!