/understand-redux

Implement a redux with React related plugins from 0 to 1

Primary LanguageTypeScriptMIT LicenseMIT

understand-redux

Implement a redux with React related plugins from 0 to 1

It is NOT FOR PRODUCTION-USE !

Description

This repository implements Redux state-storing APIs and some basic APIs in React-Redux.

The app.tsx, which is a simple counter, is a Demo component using Redux for states management, where codes are copied from redux.js.org

APIs

It implements following APIs in Redux:

  • createStore
  • applyMiddlewares (with a simple-react-thunk middleware for verifying)

and following APIs in React-Redux:

  • Provider
  • useDispatch
  • useSelector
  • useStore