-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (20 loc) · 708 Bytes
/
index.js
File metadata and controls
21 lines (20 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter, Router, Route, IndexRoute, StaticRouter, HashRouter,Link} from 'react-router-dom';
import './index.css';
import App from './App';
import Home from './components/Home';
import registerServiceWorker from './registerServiceWorker';
import { Provider } from 'react-redux';
import store from './store/store';
ReactDOM.render((
<Provider store={store}>
<HashRouter>
<App>
<Route exact path='/' component={Home}/>
{/*<Route path = "/someotherroute" component = {SomeotherComponent} />*/}
</App>
</HashRouter>
</Provider>
), document.getElementById('root'));
registerServiceWorker();