-
-
Save mwarger/bf795b185e4e2ee95233610b7518a3fa 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
class AuthComponent extends Component { | |
render() { | |
return <div>AuthComponent Section</div>; | |
} | |
} | |
const Routes = () => ( | |
<Switch> | |
<Route exact path="/" render={() => <div>Home</div>} /> | |
<Route exact path="/auth" render={AuthComponent} /> | |
<Route | |
exact | |
path="/secret" | |
render={() => <div>Keep it secret! Keep it safe!</div>} | |
/> | |
<Route exact path="/about" render={() => <div>About Content</div>} /> | |
</Switch> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment