Skip to content

Instantly share code, notes, and snippets.

@mwarger
Created March 25, 2018 18:20
Show Gist options
  • Save mwarger/bf795b185e4e2ee95233610b7518a3fa to your computer and use it in GitHub Desktop.
Save mwarger/bf795b185e4e2ee95233610b7518a3fa to your computer and use it in GitHub Desktop.
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