drrx
A lightweight front-end framework based on redux, redux-observable
Install
$ npm install --save drrx
Usage Example
App.tsx
;; Component @ private store: count: number; isAuth: boolean; name: string ; { console; return <div> <p>thisstoreisAuth isAuth</p> <p>thisstorename name</p> <button onClick= >increment</button> <button onClick= >decrement</button> <button onClick= >ping</button> </div> ; }
global.ts
;; namespace: 'global' state: count: 33 isAuth: false name: 'ddot' reducers: { statecount += 1; } { statecount -= 1; } { statecount = 0; } epics: { return action; } ;
index.tsx
;;;;var app = ;app;app;appstart'#root';
LICENSE
MIT