import React from 'react'; import {render} from 'react-dom' import {Provider} from 'react-redux' import {Tabs} from 'react-tabs' import createStore from './redux/create'; import App from './containers/App'; // Global CSS import './css/index.scss' import './css/lib/chrome/platform_app.css' import './css/lib/fontawesome/css/font-awesome.css' import {initStore} from './redux/initstore'; import {initDB} from './database'; import {getVersion} from './lib/appInfo'; // Don't inject component styles (use our own) Tabs.setUseDefaultStyles(false); export const store = createStore(); console.log(`-- Loading App v${getVersion()} --`); initDB() .then(() => initStore(store.dispatch)) .then(() => { console.log('-- Rendering App --'); render( , document.getElementById('root') ); });