From the course: React: Creating and Hosting a Full-Stack Site
Schalten Sie den kompletten Kurs noch heute frei
Join today to access over 23,400 courses taught by industry experts.
Using React Router links
From the course: React: Creating and Hosting a Full-Stack Site
Using React Router links
- [Instructor] All right, so at this point, we've created very basic components for all of the pages in our application, and we can navigate between those pages simply by going up here to the top and typing in the path of one of our different pages. So if we type /articles, we'll see that the articles page shows up. Now this whole idea of typing in the path in a browser is probably something that our users aren't going to want to do. So it's very important that we allow our users to navigate between different pages by interacting with the site instead of actually having to go up here and know the specific path they want to go to. Now, the way that we do this, the way that we allow users to click certain elements and go to another page, in other words, the way that we add links to our site using React Router is by using a special component called the link component. Now, before we actually see how that component works, what…
Inhalt
-
-
-
Why React?3m 27s
-
(Locked)
Setting up a React project5m 34s
-
(Locked)
Creating the app component4m 3s
-
(Locked)
Creating your blog pages10m 1s
-
(Locked)
Using React Router links5m 36s
-
(Locked)
URL parameters with React Router9m 29s
-
(Locked)
Creating and linking the articles list8m 45s
-
(Locked)
Making your articles list modular5m 18s
-
(Locked)
Creating a 404 page in React8m 10s
-
-
-
-
-
-
-