RNE x RNW: Add second component and Routing
import React, { Component } from 'react'; | |
import Home from './Components/Home'; | |
import CommitList from './Components/Commit/CommitList'; | |
import { Route, Router, Switch } from './Utils/Routing'; | |
class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<Switch> | |
<Route exact path="/" component={Home} /> | |
<Route exact path="/commit" component={CommitList} /> | |
</Switch> | |
</Router> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment