A tiny and powerful state manager for React. like redux, rematch or dva.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib
src
.gitignore
.npmignore
README.md
package-lock.json
package.json
rollup.config.js
tsconfig.json

README.md

React Restated

A tiny and powerful state manager for React. like rematch or dva. 中文手册

Features

  1. Tiny && Effective: Using new Context API of React v16.3+, Just 8kb after compressed.
  2. Simple && Direct: no more actionTypes, no more dispatch, action dispatch changes auto.
  3. Friendly: Organized by Models like rematch, combined the effects and reducers.
  4. Middleware: Just the same as redux, support redux-devtools out of box!

Examples

View examples in codeSandbox:

Install

npm i --save react-restated

Changelogs

  • 1.2.1: this.commit 将会默认dispatch一个$COMMIT(TYPE)的action
  • 1.2.0: 将store于Provider解耦,支持SSR