Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active Sep 11, 2018
Embed
What would you like to do?
Example of our HashRouter is used in React. Great for static hosting services such as GitHub Pages.
<HashRouter>
<div>
<Route path="/" component={Home} />
<Route path="about" component={About} />
<Route path="teachers" component={Teachers} />
<Route path="courses" component={Courses} />
</div>
</HashRouter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment