Skip to content

Instantly share code, notes, and snippets.

@jonleopard
Last active January 30, 2018 16:46
Show Gist options
  • Save jonleopard/cb05e14d058e2f09e8d73a4de6605ad2 to your computer and use it in GitHub Desktop.
Save jonleopard/cb05e14d058e2f09e8d73a4de6605ad2 to your computer and use it in GitHub Desktop.
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