lore-hook-react
Responsible for building the application and mounting it to the DOM
Responsible for building the application and mounting it to the DOM
Generate the root component that will be mounted to the DOM. This function will be invoked by lore after all hooks have been loaded.
getRootComponent: function(lore) {
var store = lore.store;
var routes = lore.router.routes;
var history = lore.router.history;
return (
<Provider store={store}>
<Router history={history}>
{routes}
</Router>
</Provider>
);
}