<Dynamic .../>
Renders a component chosen at runtime. The component prop is read once when <Dynamic/> is created β it is not reactive, so passing a signal or a function that returns a component won't swap the rendered output. To drive the component choice reactively, mount <Dynamic/> inside a Show or Switch that toggles which one is shown. All other props are forwarded to the rendered component. For the JavaScript equivalent see Component.
# Attributes
| name | type | description |
|---|---|---|
| component | tagName | fn | Pota class | Element | what to render β read once, not reactive |
| β¦rest | any | forwarded as props to the rendered component |
# Using dynamic
Simple test