Rendering components dynamically
In some scenarios, you might want to load and render components dynamically. You might want to load and render components dynamically because you don’t know the layout or exact components of the page upfront or because you have data and resource-intensive components that you only want to load and render if the user needs them in the view.
Here are some common examples of when dynamically loading components is useful:
- When building a website builder where customers can build up web pages based on a set of components you provide. With a website builder, you don’t know how the user will create the page’s layout and what components will be used. You want to load components dynamically whenever the user adds them to the page.
- When you have a multi-step wizard where the content of the next steps differs based on the users’ choices during each step of the wizard.
- Tabs, modals, and popups with resource-intensive...