4 ms·
This list looks great. I watched the Wes Bos intro video, and it was a nice high-level overview. Thanks for putting this together. Speaking as someone already
by cdata 8y ago
This list looks great. I watched the Wes Bos intro video, and it was a nice high-level overview. Thanks for putting this together.
Speaking as someone already familiar with Redux, React Context seems to be conceptually similar to how I already use Redux in practice (+/- expressing the store and connections as components). Can anyone with better familiarity enumerate the important differences this new API comes with?
- deadcoder0904 8y agoDo not make the mistake of comparing Redux with new Context API Read the 1st comment in the thread [0] for explanation [0]: https://www.reddit.com/r/reactjs/comments/84d4m5/heres_how_reacts_new_context_api_works_by_wes_bos https://www.reddit.com/r/reactjs/comments/84d4m5/heres_how_r...
- mephitix 8y agoMark Erikson (dev on React) explains this very well: http://blog.isquaredsoftware.com/2018/03/redux-not-dead-yet/ http://blog.isquaredsoftware.com/2018/03/redux-not-dead-yet/. "If you're only using Redux to avoid passing down props, context could replace Redux - but then you probably didn't need Redux in the first place. Context also doesn't give you anything like the Redux DevTools, the ability to trace your state updates, middleware to add centralized application logic, and other powerful capabilities that Redux enables."
- diegohaz 8y agoAs I wrote in this article [0], I strongly believe that the new Context API can replace Redux in most apps, not because it's a Redux replacement, but mostly because they didn't need Redux in the first place. People start their projects with Redux without knowing if they'll actually need it. [0] https://medium.freecodecamp.org/reacts-new-context-api-how-to-toggle-between-local-and-global-state-c6ace81443d0 https://medium.freecodecamp.org/reacts-new-context-api-how-t...