embark-dtwitter-workshop/app/js/dapp.js

15 lines
389 B
JavaScript

import { render } from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import App from './components/App';
import React from 'react';
import EmbarkJS from 'Embark/EmbarkJS';
import DTwitter from 'Embark/contracts/DTwitter';
window.EmbarkJS = EmbarkJS;
window.DTwitter = DTwitter;
render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root'));