implemented PluginLoader

This commit is contained in:
Sebastian Sdorra
2018-08-24 12:43:10 +02:00
parent ab8f166b1d
commit 4f775fe7ca
8 changed files with 104 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ import type { BrowserHistory } from "history/createBrowserHistory";
import createReduxStore from "./createReduxStore";
import { ConnectedRouter } from "react-router-redux";
import PluginLoader from "./components/PluginLoader";
const publicUrl: string = process.env.PUBLIC_URL || "";
@@ -36,7 +37,9 @@ ReactDOM.render(
<I18nextProvider i18n={i18n}>
{/* ConnectedRouter will use the store from Provider automatically */}
<ConnectedRouter history={history}>
<App />
<PluginLoader>
<App />
</PluginLoader>
</ConnectedRouter>
</I18nextProvider>
</Provider>,