Skip to content

Instantly share code, notes, and snippets.

@Calvin-Huang
Created October 2, 2017 03:17
Show Gist options
  • Save Calvin-Huang/00c5d8bd59602173fb61548d774e2590 to your computer and use it in GitHub Desktop.
Save Calvin-Huang/00c5d8bd59602173fb61548d774e2590 to your computer and use it in GitHub Desktop.
<script src="/js/actions.js"></script>
<script src="/js/reducers.js"></script>
<script src="/js/middleware.js"></script>
<script>
const store = Redux.createStore(
reducers(actions.types, Redux),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
Redux.applyMiddleware(
middleware.default(actions.types, actions.default, $),
),
);
....
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment