-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Is your feature request related to a problem?
To attach an element to external libraries like mapbox, we need to create html elements in memory.
Currently, we have to create the element using native JavaScript functions.
To improve DX, it would be great to be able to import a Qwik component and to render it into an HTML element.
This means the element can be used standalone in Playwright, Vitest, Storybook and in an app, as well as dynamically rendered into external libraries.
Describe the solution you'd like
A function with a potential signature createElement(node: JSX.Element)
. We can then do this:
const element = createElement(<MyMapMarker someProp={1234} />)
// add to library
Describe alternatives you've considered
Manually creating elements in JavaScript, which sucks
Additional context
No response
DustinJSilk and ITenthusiasm
Metadata
Metadata
Assignees
Labels
No labels