mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-08 22:15:02 +00:00
Sur la page /regle, ce qui est très pratique pour améliorer l'affichage de l'algorithme. C'est problablement notre génération du JSX dans mecanism.js qui pose problème. https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md
35 lines
658 B
JavaScript
35 lines
658 B
JavaScript
import React from 'react'
|
|
import { render } from 'react-dom'
|
|
import { compose, createStore } from 'redux'
|
|
import App from './containers/App'
|
|
import reducers from './reducers'
|
|
import DevTools from './DevTools'
|
|
import { AppContainer } from 'react-hot-loader'
|
|
|
|
let store = createStore(
|
|
reducers,
|
|
compose(
|
|
DevTools.instrument()
|
|
)
|
|
)
|
|
|
|
let anchor = document.querySelector('#js')
|
|
|
|
render(
|
|
<App store={store}/>,
|
|
anchor
|
|
)
|
|
|
|
// Hot react component reloading. Unstable but helpful.
|
|
if (module.hot) {
|
|
module.hot.accept('./containers/App', () => {
|
|
render(
|
|
<AppContainer>
|
|
<App store={store} />
|
|
</AppContainer>,
|
|
anchor
|
|
)
|
|
})
|
|
}
|
|
|
|
export {anchor}
|