4 ms·
React is just the UI piece of the puzzle. Here's a nice description of when to use Redux: "[Redux is justified when] you have a piece of data that needs to be
by exception_e 10y ago
React is just the UI piece of the puzzle. Here's a nice description of when to use Redux:
"[Redux is justified when] you have a piece of data that needs to be used in multiple places in your app, and passing it via props makes your components break the single-responsibility principle (i.e. makes their interface make less sense)" (https://github.com/petehunt/react-howto/issues/12#issuecomment-169546558 https://github.com/petehunt/react-howto/issues/12#issuecomme...)
This comment was written for Flux, but it is completely applicable for Redux.
When building something non-trivial, there are other pieces you'll want to pull in with React such as routing, messaging, etc.
- caub 10y agoYea I know what Flux, Redux are, and honestly I think they are completely not needed if you understand and use React well, see comment below