How to use hops-redux - 1 common examples

To help you get started, we’ve selected a few hops-redux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xing / hops / demo / src / app.js View on Github external
<h1>Hello World!</h1>
);

const Foo = () =&gt; (
  <h1>Hello Foo!</h1>
);

const App = () =&gt; (
  
);

export default render(, createContext({
  reducers: {
    foo: function (state, action) {
      // console.log(state, action);
      return Object.assign({}, state);
    }
  },
  actionCreators: {
    '/:foo': function (params, location) {
      return function (dispatch) {
        console.log(params, location);
      };
    }
  }
}));

hops-redux

React and Redux implementation for Hops

MIT
Latest version published 2 years ago

Package Health Score

60 / 100
Full package analysis

Popular hops-redux functions