3 ms·
Why would you want to teach React without Redux? I failed on the trap as well, I mean, why would you want to add yet another 'concept' to your stack when you c
by baristaGeek 10y ago
Why would you want to teach React without Redux?
I failed on the trap as well, I mean, why would you want to add yet another 'concept' to your stack when you can just get a simpler piece of code do the same thing as a more complex one?
The truth is that if you're going to build something as simple as a simplified Hacker News clone, you can just get along using concepts of Redux with plain-old React without actually using Redux.
However, if you want to build a much more complex frontend system using Redux does give you a utility.
- rwieruch 10y agoI get your point. But I think you have to see it from two directions: real world developing and teaching. When I wrote [The SoundCloud Client in React + Redux](http://www.robinwieruch.de/the-soundcloud-client-in-react-redux/ http://www.robinwieruch.de/the-soundcloud-client-in-react-re...) I made the mistake to think one could learn everything at once. I agree with your point that, when you are developing a more complex app, you will need some external state management eventually. But when you want to teach about one subject, I learned to stick to that subject and to teach it properly before students should dive into something else. I can't agree with your other point to use only Redux without React internal state management. Once your app grows more complex again, you don't want to store everything in your global store. (You shouldn't do so from the beginning.) In a development environment with multiple developers/teams you want to keep your store tidy. I had to learn that the hard way, because I made the mistake to learn React + Redux without React's internal state management in the beginning.