4 ms·
I have been on the fence for using Redux in a large-scale project and I am still not convinced about its usefulness. I feel its too much code for too little gai
by subbu 7y ago
I have been on the fence for using Redux in a large-scale project and I am still not convinced about its usefulness. I feel its too much code for too little gain. You have listed it as one of the tools you have used in org-web. Does it add value?
- schwartzworld 7y agoA lot of people reach for redux because they mistakenly believe it's required for react development. In 2019 if you are using modern react with context and hooks, it offers very little that you can't find built into react already.
- DanielDe 7y agoThe short answer is yes it added value, but I wouldn't use it if I started on org-web today. Largely this is because of the new hooks API in React (particularly useReducer). Redux also helped me grow a lot as an engineer. I'm sure the concepts that it builds on aren't new, but they were new to me when I first started using Redux and I now spend a lot of time thinking the way Redux taught (or forced) me to think.
- subbu 7y agoThanks. That helps. Looks like you can build a middleware using hooks alone. I found a good video from a React guru: https://www.youtube.com/watch?v=nUzLlHFVXx0 https://www.youtube.com/watch?v=nUzLlHFVXx0. He builds a few Redux concepts in the video.