/react-state-management

A basic app that fetching public API with react reducer and context as state management.

Primary LanguageTypeScript

A simple product displayer app using https://fakestoreapi.com/ free API but focused on state management.

There is 3 branch in this repo:

  • normal-state-management - Feched data management using basic useState, and data filter using zustand.
  • useReducer-zustand - Fetched data management using useReducer from react, and data filter using zustand.
  • master - Fetched data and filter state management using useReducer and useContext, then provided with Provider so every data can be access by the child component without passing it by the props.