| Sounds more like a bunch of excuses. Why do I, a framework user, need hooks? What problem do they solve for me? If you can't answer that without talking about what react broke first I don't think we we need whatever you're selling. Added responses there too. I feel like hooks are a solution to shit code that just needs a refactor. This happens a lot in frameworks that try to please everyone all the time. You give people of all experience levels the same feature set. It's no wonder at least half your user base goes out back and shoots themselves in the foot. If you want to fix this problem you need to remove flexibility. Not give them yet another method to hurt themselves. I'd start by splitting component concerns. MVC might be a good candidate. React.fragment components tend to smell like fat models. Pure functions basically views and connect code/prop/state mapping looks a lot like controllers. Fwiw this small UI component thing is originally what the MVC pattern was intended for. The big laravel style classes we have today are a misappropriation of the patterns name onto something that it shouldn't have. |