I have been reading some redux tutorials and to be honest I do not see up until now what added value it brings over plain react.
As far as I know I can build an app and manage its state using only react, so, what makes redux something worth using?
Well, I do recognize redux has a few advantages over react, namely:
But maybe due to my lack of experience building large apps I am not convinced that it would make my life easier.
Can you elaborate a little more on the advantages of using redux over plain react?
Off the top of my head, a few advantages:
And that's before getting to many of the commonly discussed benefits, such as predictable state updates, time travel debugging, improved testability, and centralized logic.
It's certainly true that you can write an entire application using nothing but React's component state (and Dan Abramov himself says that people often jump into Redux too early), but from my perspective Redux is absolutely worth it.
edit
I've written up an expanded version of this answer as an article on the Full Stack React site: Redux and Why It's Good For You.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments