Guest User

Untitled

a guest
Dec 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import { async, hold } from 'most-subject';
  2. import reducer from './reducer';
  3.  
  4. const initialState = {};
  5. // :: AsyncSubject
  6. const store = hold(1, async());
  7. // :: Action -> ()
  8. export const next = store.next.bind(store);
  9. // :: AsyncSubject State
  10. export const state = store.scan(reducer, initialState);
Add Comment
Please, Sign In to add comment