Yep. I actually just wrote a post a few days ago that covers this:
Why React Context is Not a "State Management" Tool (and Why It Doesn't Replace Redux)
My primary point is clarifying the actual capabilities and purposes for Context, useReducer, and Redux, but as part of that I also discuss some of the behavior differences.
useReducer
I'd also suggest reading my posts A (Mostly) Complete Guide to React Rendering Behavior and React, Redux, and Context Behavior, which cover more details on the rendering behavior aspects.
Cool...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yep. I actually just wrote a post a few days ago that covers this:
Why React Context is Not a "State Management" Tool (and Why It Doesn't Replace Redux)
My primary point is clarifying the actual capabilities and purposes for Context,
useReducer
, and Redux, but as part of that I also discuss some of the behavior differences.I'd also suggest reading my posts A (Mostly) Complete Guide to React Rendering Behavior and React, Redux, and Context Behavior, which cover more details on the rendering behavior aspects.
Cool...