GithubHelp home page GithubHelp logo

frontlich / nice-store Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.16 MB

lite\flexible\extensible state management for react 一个轻量的、灵活的、易扩展的react状态管理方案

Home Page: https://frontlich.github.io/nice-store/#/

License: MIT License

HTML 2.65% CSS 0.61% TypeScript 93.57% JavaScript 3.08% Shell 0.10%
enhancer react-state store typescript nice-store management react state

nice-store's Introduction

nice-store

npm version npm downloads

homepage

https://frontlich.github.io/nice-store/#/

usage

install

npm install nice-store

createCoreStore

import { createCoreStore } from "nice-store";

const store = createCoreStore(0);

store.subscribe(console.log);

store.setState(1); // will log 1
store.getState(); // 1

createStore

import { createStore } from "nice-store";

create enhanced store with initialState and enhancers

createStore(initialState, ...enhancers);

internal enhancers:

other enhancers:

nice-store's People

Contributors

frontlich avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.