Intro to React Router 4 Switch

(GPLTaylor) #1

a quick video showing how to use React Router 4 Switch.

(Marcin Z) #2

You should’ve add exact prop on path="/aboutus/" because without it the component hijacks all calls to path=/aboutus/:username as it is higher in source code and matches that path.

(GPLTaylor) #3

@marzelin you’re absolutely right. great spot.

(Ramya) #4

Hi, Very nice video, your command over React Router is outstanding, finally thanks for sharing good video.

Ramya, Trainer@ Best ReactJS Training Hyderabad