import { renderToString } from "npm:solid-js/web";
function calc() {
return 4 + 5;
}
function getMarkup() {
return <div>Test {calc()}</div>;
}
export const solidExample = async () =>
new Response(await renderToString(() => getMarkup()), {
headers: {
"Content-Type": "text/html",
},
});