safe-react/src/index.js

21 lines
636 B
JavaScript
Raw Normal View History

// @flow
import 'babel-polyfill'
import React from 'react'
2018-03-01 08:05:56 +00:00
import ReactDOM from 'react-dom'
import Root from '~/components/Root'
import { store } from '~/store'
import loadSafesFromStorage from '~/routes/safe/store/actions/loadSafesFromStorage'
2019-04-17 12:47:21 +00:00
import loadActiveTokens from '~/logic/tokens/store/actions/loadActiveTokens'
2019-05-23 12:27:02 +00:00
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React)
}
2019-04-17 12:47:21 +00:00
store.dispatch(loadActiveTokens())
store.dispatch(loadSafesFromStorage())
2018-03-01 08:05:56 +00:00
ReactDOM.render(<Root />, document.getElementById('root'))