Loading new components
In order to incorporate these new components into the frontend, the components either need to be added into existing components or rendered at their own client-side routes.
If these new components need to be rendered at individual routes, update the MainRouter.js code to add new routes that load these components at given URL paths. Then, these URLs can be used as links to load the components from other views in the application, or directly by visiting the URL from the browser address bar.
However, if the new components need to become part of existing views, then import the components into the existing components to add them to the view as desired.
The new components can also be linked with existing components, such ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access