observable-react-state
An observable state implementation based on React's Component State approach.
Install
npm install --save observable-react-state
Usage
// @flow import ObservableReactState from 'observable-react-state' // Flow type applied to state propertytype CounterStateType = count: number <CounterStateType> state = count: 0 { // setState with an object this } { // setState with a function this } const counter = // Because it's an observablecounter
License
ISC © allain