Using renderToString in node
I have a file that looks roughly like this:
How can I run this in node? What configuration, etc., would I need?
How can I run this in node? What configuration, etc., would I need?
import { renderToString } from "solid-js/web"
...
const htmlString = renderToString(() => (
<PageComponent />
))