Renders a component into a DOM element. Creates a reactive root and handles mounting and unmounting.
Type:
Parameters:
code
: A function that returns the JSX element to renderel
: The DOM element or document to render intoReturns: A dispose function that cleans up the rendered component
Example: