dom-jsx-runtime
A tiny library that turns JSX into DOM operations
Usage
This library uses React's new JSX transform, so all you need to do is configure your build tool to use https://esm.sh/dom-jsx-runtime
for jsxImportSource
.
In Deno, for example, your deno.json
file should look like this:
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "https://esm.sh/dom-jsx-runtime"
}
}
Example
From the test, run via deno test
: