// esm import { h, Component } from 'https://esm.sh/preact'; import { render } from 'https://esm.sh/preact-render-to-string'; // built in import { server } from 'just/net'; import { fs } from 'just/io'; /** @jsx h */ class Fox extends Component { render({ name }) { return (

The foxes name is: {name}

); } } const Headers = ({ styles, children }) => ( {children}

current location:

); const Box = ({ type, children }) =>
{children}
; let html = await fs.read.file('styles.css').then((styles) => { return render( ); }); server.string(html, 'text/html; charset=UTF-8');