-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
29 lines (27 loc) · 948 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import CarouselView from './Carousel';
import Home from './Home';
import CheckoutView from './checkout'
import {Provider} from 'redux-zero/react'
import store from './store'
import registerServiceWorker from './registerServiceWorker';
// import {dishes} from './dishes'
import {HashRouter, Switch, Route} from 'react-router-dom'
import App from './App';
const Index = () => (
<Provider store={store}>
<HashRouter>
{/* <Carousel dishes={dishes} /> */}
<Switch>
<Route exact path = "/" component={App}/>
<Route path = "/home" component={App}/>
<Route path = "/carousel" component={CarouselView}/>
<Route path = "/details" component={CheckoutView}/>
</Switch>
</HashRouter>
</Provider>
)
ReactDOM.render(<Index/>, document.getElementById('root'));
registerServiceWorker();