Last active
January 30, 2018 16:46
-
-
Save jonleopard/cb05e14d058e2f09e8d73a4de6605ad2 to your computer and use it in GitHub Desktop.
This file contains 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 Popular from './Popular'; | |
import { BroswerRouter, Route } from 'react-router-dom'; | |
import Nav from './Nav'; | |
import Home from './Home'; | |
import Battle from './Battle'; | |
class App extends React.Component { | |
render() { | |
return ( | |
<Router> | |
<div className='container'> | |
<Nav /> | |
<Route exact path='/' component={Home} /> | |
<Route path="/battle" component={Battle} /> | |
<Route path='/popular' component={Popular} /> | |
</div> | |
</Router> | |
) | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment