plugin architecture

This commit is contained in:
Cássio Zen
2016-08-17 09:52:17 -03:00
parent dea734ec21
commit a0a24ebf72
5 changed files with 59 additions and 7 deletions

View File

@ -5,6 +5,7 @@ import { Router } from 'react-router';
import configureStore from './store/configureStore';
import routes from './routing/routes';
import history, { syncHistory } from './routing/history';
import { initPluginAPI } from './plugins';
import 'file?name=index.html!../example/index.html';
import './index.css';
@ -13,6 +14,8 @@ const store = configureStore();
// Create an enhanced history that syncs navigation events with the store
syncHistory(store);
initPluginAPI(store);
const el = document.createElement('div');
el.id = 'root';
document.body.appendChild(el);