Huge Store is a simple and powerfull store for using in react applications.
npm install --save hugestore
This module has three functions:
The first is
connectorthat gets component instance(this) as first argument and connects component to store by getting statekey as second argument and storekey path as third argument for single connection, And for multiple connection that gets second argument as object (key: statekey, value: storekey path). For ES can use with
The second is
setData. This function gets two arguments for single connections setting data (1: storekeyPath, 2: data) and for setting data in multiple connections it gets one argument as object (key: storekeyPath, value: data).
And the last is
getDatathat returns data by getting storekeyPath as argument. this function will return undefined for unregistered data. (e.g.
More features and documents will come soon in new releases.
var Application = Reactvar Posts = React