Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active September 11, 2018 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaneleem/3a5a62abc62db156b88a1617380e9704 to your computer and use it in GitHub Desktop.
Save duaneleem/3a5a62abc62db156b88a1617380e9704 to your computer and use it in GitHub Desktop.
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