import React from 'react' ; import ReactDOM from 'react-dom' ; import './index.css' ; import App from './App' ; import * as serviceWorker from './serviceWorker' ; import { Provider } from 'react-redux' ; import 'bootstrap/dist/css/bootstrap.min.css' ; import 'shards-ui/dist/css/shards.min.css' ; import { createVtxStore } from './ethvtx_config/createVtxStore' ; import { setupWeb3 } from './ethvtx_config/setupWeb3' ; const main = async ( ) : Promise < void > => { const store = createVtxStore ( ) ; await setupWeb3 ( store ) ; ReactDOM . render ( < Provider store = { store } > < App /> < /Provider>, document.getElementById('root')); serviceWorker . unregister ( ) ; } ; main ( ) ;