Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created March 30, 2020 17:26
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/2d8de9216c3dd4deb93ea9b8f408bfac to your computer and use it in GitHub Desktop.
Save Porter97/2d8de9216c3dd4deb93ea9b8f408bfac to your computer and use it in GitHub Desktop.
#...
import Home from './components/Home'
#...
class AppRouter extends Component {
#...
render() {
#...
<Switch>
<Route exact path="/" component={() => <Home currentUser={this.props.currentUser} />} />
<Route path="/register" component={Register} />
</Switch>
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment