import{h}from'hastscript'import{toJsxRuntime}from'hast-util-to-jsx-runtime'import{Fragment,jsxs,jsx}from'react/jsx-runtime'import{renderToStaticMarkup}from'react-dom/server'consttree=h('h1','Hello, world!')constdoc=renderToStaticMarkup(toJsxRuntime(tree,{Fragment,jsxs,jsx}))console.log(...
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'In browsers with esm.sh:<script type="module"> import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2?bundle' </script>Useimport {h} from 'hastscript' import {toJsxRuntime} from 'hast-util...
example/hast-util-to-jsx-runtime.min.js !lib/components.d.ts /example/hast-util-to-jsx-runtime.min.js !/lib/types.d.ts !/index.d.ts !/types.d.ts 18 changes: 18 additions & 0 deletions 18 index.d.ts Original file line numberDiff line numberDiff line change @@ -0,0 +...
hast utility to transform to preact, react, solid, svelte, vue, etc - Fix build by downgrading `esbuild` · syntax-tree/hast-util-to-jsx-runtime@6fad092
npm install hast-util-to-jsx-runtimeIn Deno with esm.sh:import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'In browsers with esm.sh:<script type="module"> import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2?bundle' </script>...
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'In browsers with esm.sh:<script type="module"> import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2?bundle' </script>Useimport {h} from 'hastscript' import {toJsxRuntime} from 'hast-util...