safe-react/src/index.js

28 lines
649 B
JavaScript
Raw Normal View History

// @flow
import 'babel-polyfill'
import { MuiThemeProvider } from 'material-ui/styles'
2018-03-01 08:05:56 +00:00
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import { history, store } from '~/store'
import theme from '~/theme/mui'
import AppRoutes from '~/routes'
import './index.scss'
const Root = () => (
<Provider store={store}>
<MuiThemeProvider theme={theme}>
<ConnectedRouter history={history}>
<AppRoutes />
</ConnectedRouter>
</MuiThemeProvider>
</Provider>
)
2018-03-01 08:05:56 +00:00
ReactDOM.render(
<Root />,
document.getElementById('root'),
)