Last active
May 25, 2018 19:24
-
-
Save maisonm/4ef31a08f4331adb0ba470a751c2b5df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './views/css/styles.css'; | |
import {BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | |
import registerServiceWorker from './registerServiceWorker'; | |
//Views | |
import App from './views/App'; | |
import Home from './views/Home'; | |
import CurrentWeather from './views/CurrentWeather'; | |
import ErrorDisplay from './views/ErrorDisplay'; | |
ReactDOM.render( | |
<Router> | |
<App> | |
<Route exact path='/' component={Home}/> | |
<Route exact path='/current-weather' component={CurrentWeather}/> | |
<Route exact path='/error' component={ErrorDisplay}/> | |
</App> | |
</Router> | |
,document.getElementById('root')); | |
registerServiceWorker(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment