Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created March 30, 2020 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/e13aa0c922b4048b3ee82b88b0411e55 to your computer and use it in GitHub Desktop.
Save Porter97/e13aa0c922b4048b3ee82b88b0411e55 to your computer and use it in GitHub Desktop.
#...
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