trunks
Minimalistic stores for React.
Usage
Create a store:
// counter.js; // declare your store here static store = Trunk; { this; }
In your view:
;;; { const Counter: CounterStore = thispropstrunksstores; const Counter: CounterActions = thispropstrunksactions; return <button onClick= CounterActions> This button has been clicked CounterStoreclicked times </button> ; } // Don't forget to connect your component!// You can listen to more than one storeClickCounter Counter;