For this course, we will stick with React Router version 2/3; version 4 is a paradigm shift that adds dynamic routing. Expect to see some warnings during installation, building and execution.
React Router Tutorial — Work through the first ten lessons, “Setting Up”– “Clean URLS”. We suggest that you start with the lesson 1 code and modify it as described in each successive lesson rather than moving to a new code base for each lesson. If you get messed up somehow, you can compare with their solutions.
/
); the about page (/about
)
and the repos page (repos/
).
localhost:8080/about
.
What do you get and why?
localhost:8080/#/?_k=ty85cp
) and
browser-based (e.g., localhost:8080/
)
URLs.
You can find further documentation on the newer version here: React Training / React Router: Philosophy.