课程: React: Creating and Hosting a Full-Stack Site (2022)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…
内容
-
-
-
Why React?3 分钟 27 秒
-
(已锁定)
Setting up a React project5 分钟 34 秒
-
(已锁定)
Creating the app component4 分钟 3 秒
-
(已锁定)
Creating your blog pages10 分钟 1 秒
-
(已锁定)
Using React Router links5 分钟 36 秒
-
(已锁定)
URL parameters with React Router9 分钟 29 秒
-
(已锁定)
Creating and linking the articles list8 分钟 45 秒
-
(已锁定)
Making your articles list modular5 分钟 18 秒
-
(已锁定)
Creating a 404 page in React8 分钟 10 秒
-
-
-
-
-
-
-