Created
November 13, 2023 03:29
-
-
Save nearbycoder/7f8438a0bad3a7b4f95690079c9706e5 to your computer and use it in GitHub Desktop.
preact.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsxImportSource https://esm.sh/preact */ | |
import { render } from 'npm:preact-render-to-string'; | |
const x = 1; | |
export const someDom = render(<div>Test {x}</div>); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment