SolidJSS
SolidJSโ€ข10mo agoโ€ข
8 replies
hyperknot

Can I use Solid for rendering DOM elements under non-Solid parts of the website?

I'm using ProseMirror in one Solid component. ProseMirror takes a div, adds it's own children and populates it with it's own DOM elements.
For simple elements it's OK, but for more complicated, interactive elements it'd be advantageous to use SolidJS.

But how can I make Solid rendered/controlled DOM elements under a non-Solid part of the website?

Can I call render() on a few (say <10) items in this unmanaged part of the website? What happens when those get deleted? Is Solid smart enough to recognise the element is being deleted and then call all the cleanup handles on it?
Was this page helpful?