|
|
|
|
|
by ropeadopepope
2932 days ago
|
|
I dislike React these days. Parts of it are great. It still has the best ecosystem of all the JS frameworks and the virtual dom diffing is still the best in the business. But, more and more, I'm having to adopt third party solutions to overcome the limitations of React. First it was Redux, because global state makes more sense than local state for anything non-trivial. Then it was Redux Router because control flow in React sucks. Then it was Sagas, because controlling side effects and limiting race conditions is crucial in a large React application (and, once again, control flow in react sucks). Now I'm adding in styled components because every other react styling solution I've seen has serious drawbacks and limitations. Only after adding all of that do I feel like we're getting to the place React had intended when it was first released. Render functions are free of almost all logic. Everything is declarative and composable. Most of my components are now stateless, which makes everything so much simpler. Because of all of these additions, there's very little 'React' there anymore. I realized the other day that the more features of 'React' I jettison the happier I am with my applications. |
|