Created
March 30, 2020 19:30
-
-
Save Porter97/e13aa0c922b4048b3ee82b88b0411e55 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 Login from './components/auth/Login.jsx' | |
#... | |
class AppRouter extends Component { | |
#... | |
render() { | |
#... | |
<Switch> | |
<Route exact path="/" component={() => <Home currentUser={this.props.currentUser} />} /> | |
<Route path="/register" component={Register} /> | |
<Route path="/login" component={Login} /> | |
</Switch> | |
#... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment