Skip to content

Latest commit

 

History

History

RoutingHashReactHooks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

RoutingHashReactHooks

This recipe shows how to use purescript-routing to do client-side hash-based routing in a React-based single-page application (SPA).

Expected Behavior:

Browser

When you click on the links, you should see:

  • The anchor in the URL change
  • The current route rendered on the page
  • Route changes logged to the dev console

You may also edit the URL directly instead of clicking on the links.

Dependencies Used:

react react-dom