课程: Micro Front-End Architecture with React
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Finalizing the app routing
- [Instructor] In this video, I'll show you what changes and how we fix our routing in the application. In the container folder, I created a new file called routes.js. This houses all the routes of the entire application. And if you notice, I bring in routes, the route, and then navigate. Now what happens here is that I bring all the remote application, the homepage, the listing, the cart, and the checkout all together into this place and modify the route for each of the application. What happens here is that each of the application would no longer be handling their routing, but the container will be the one handling the routing and the container means the host. If you check the container app.jsx, what changes here is that they no longer use routes or route. So the app.jsx houses all the routes of the entire application. And how did we do that? Now you notice we brought up routes and it wrapped inside the router element. That is the only change done in the app.jsx inside the container…
内容
-
-
-
-
-
-
-
(已锁定)
Project scope and team setup3 分钟 59 秒
-
(已锁定)
Repository and environment setup2 分钟 32 秒
-
(已锁定)
Book-listing team development8 分钟 47 秒
-
(已锁定)
Cart team development3 分钟 21 秒
-
(已锁定)
Checkout team development4 分钟 6 秒
-
(已锁定)
Coupling and deploying the complete app10 分钟 42 秒
-
(已锁定)
Finalizing the app routing5 分钟 25 秒
-
(已锁定)
-