SolidJSS
SolidJSโ€ข3y agoโ€ข
7 replies
foolswisdom

Using renderToString in node

I have a file that looks roughly like this:
import { renderToString } from "solid-js/web"

...

const htmlString = renderToString(() => (
  <PageComponent />
))

How can I run this in node? What configuration, etc., would I need?
Was this page helpful?