Skip to content

joelburton/react-subrouting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Subrouting

This is a small demo of a site, Spice.ly, that demonstrates top-level routes and further down routes.

Our Components

Components

Our Routes

  • exact / renders <Homepage />

  • non-exact /about renders <AboutSection />

  • else - redirect to <Homepage />

The about section has self-contained routing to:

  • exact /about - renders nothing (already rendered by<AboutSection />)

  • exact /about/jobs renders <JobsList />

  • exact /about/team renders <Team />

  • else - redirect to <AboutSection />

About

Example of React routing with two levels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published