Justin Lee
1 min readOct 8, 2018

React Router and how I see it.

You’ve probably heard the terms router and switch, if you have a decent network set up at home. The terms are often used interchangeably, but when it comes to React router they are definitely not interchangeable. React router has been by far the easiest thing to learn when it comes to JavaScript by far, and I can definitely see its usefulness.

What is react router? The simplest way to describe it is to say it allows new content to be loaded onto your page without having to reload the whole page. With react you can build multiple components for a page and put them all together with react, but with react router you put all the components on one page and only have them show up when you what them to appear; or you can have components replace other component when they are called.

An example of use for react router could be something like a photo gallery; I know because I built one when learning it. The default component could be a list of categories for groups of photos, and these categories would be links to the group of photos that match that category. React Router would allow the page to move between the categories page and page of photos with out having to reload the whole page. The heading of the page would stay the same while the rest of the content changed. This is just one use for react router, I’m looking forward to find more uses for it.