LBruyne / understand-redux

Implement a redux with React related plugins from 0 to 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Implement a redux with React related plugins from 0 to 1

License:MIT License


Languages

Language:TypeScript 86.2%Language:HTML 13.8%