Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 408 Bytes

topic-react-context-and-redux-diff.md

File metadata and controls

14 lines (10 loc) · 408 Bytes

React Context and Redux difference

Context

  • Allow to have state value pass around difference level of components.
  • Allow to have multiple contexts.
  • One value changed, then rendering all components again.

Redux

  • It's centralized state management.
  • Allow to hava middleware.
  • Better for middle tier test case.
  • A cetain level coding complication in order to pass value to different stages.