Skip to content

flutejs/component-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component-store

NPM version

A way to manage react dumb component's state, then you can use it in plain, redux or mobx app.

Install

npm install component-store

Usage

normal style

import store from 'component-store';

class A extends React.Component {
}

export default store(defaultStore)(App)

decorator style

import store from 'component-store';

@store(defaultStore)
class A extends React.Component {
}

export default App;

Api

  • store: Function(default store, onChange name='onChange')

  • onChange: Function(nextStore)

Example

http://flutejs.github.io/component-store/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published