Skip to content

Instantly share code, notes, and snippets.

@JaySunSyn
Created January 17, 2018 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaySunSyn/b8aa52bcd049f6c6957445ec7a1cfb62 to your computer and use it in GitHub Desktop.
Save JaySunSyn/b8aa52bcd049f6c6957445ec7a1cfb62 to your computer and use it in GitHub Desktop.
Step 2
<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../bower_components/polymer-redux/polymer-redux.html">
<link rel="import" href="redux-reducers.html">
<link rel="import" href="redux-selectors.html">
<link rel="import" href="redux-actions.html">
<script>
(() => {
App = window.App || {};
const store = Redux.createStore(App.rootReducer);
const ReduxMixin = PolymerRedux(store);
const ActionsMixin = (superClass) => {
return class extends ReduxMixin(superClass) {
static get actions() {
return App.actions;
}
};
};
App.store = store;
App.ReduxMixin = Polymer.dedupingMixin(ActionsMixin);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment