Skip to content

Instantly share code, notes, and snippets.

@devinivy
Last active June 29, 2016 11:41
Show Gist options
  • Save devinivy/3366a6069c91b4e0f72a6451ad0ae274 to your computer and use it in GitHub Desktop.
Save devinivy/3366a6069c91b4e0f72a6451ad0ae274 to your computer and use it in GitHub Desktop.
SAM meets Redux
  • model is a redux store.
  • actions are thunks.
  • nap() via model.subscribe().
  • present() is model.dispatch().
  • acceptor logic is redux middleware.
  • state/learner is implemented with ReactRedux.connect() and selectors (i.e. reselect).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment