Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Components, Data and React

Components, Data and React

Avatar for Cezar Sampaio

Cezar Sampaio

August 09, 2019
Tweet

More Decks by Cezar Sampaio

Other Decks in Programming

Transcript

  1. Pros & Cons using State Native
 Simple Good for simple

    apps or isolated components Not scalable Becomes a mess very quick Poor debug solution
  2. Pros & Cons using Redux Business logic separated from the

    UI Code is very reusable and scalable Good community support Specific tools for debugging External dependency Complex to learn Very complex and high implementation cost Very high cost just to add a small feature Integration of React’s modules may require alteration and needs to be binded with the redux state.
  3. Pros & Cons using Context Scalable for any application size

    (small, mid and large) Native, no dependency needed Can use hooks natively Business logic separated from the UI Code is very reusable and scalable Comparatively less complex than Redux Many solutions, such as redux-form, needs to be written Poor debug solution Middlewares need to be written as a custom code