How to use the hops-react.render function in hops-react

To help you get started, we’ve selected a few hops-react 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-react

React and ReactRouter setup for Hops

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis