loading...

Play With the React 🐘Router

Sai gowtham on June 01, 2018

Play with the React-Router-Dom. What is a React Router? React Router Helps us to do routing in React apps and everything is a Componen... [Read Full]
markdown guide
 

Hey, Nice tutorial. Btw, I have a question. I've seen in many articles, there the Routes are inside a Switch . But in your tutorial you haven't used Switch. Why do we should use / shouldn't use Switch ?

 

A switch is used to switch between routes whenever the exact path is matching /while handling the 404 requests we need to wrap all our Routes with the Switch Component.

Refer Play with React Router Part-2

 

How to enable jsx highlighting for JavaScript file in vsc?

 

Install prettier to format your code for highlighting it depends on the theme you're using.

code of conduct - report abuse