vhtml:将 JSXHyperscript 渲染为 HTML 字符串,无需 VDOM :rainbow:

时间:2021-07-24 19:41:08
【文件属性】:
文件名称:vhtml:将 JSXHyperscript 渲染为 HTML 字符串,无需 VDOM :rainbow:
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-24 19:41:08
virtual-dom preact jsx hyperscript vdom 网页版 将 JSX/Hyperscript 渲染为 HTML 字符串,无需 VDOM 需要使用 HTML 字符串(angular?)但想使用 JSX? vhtml 支持你。 构建组件? 帮自己一个忙并使用 安装 通过 npm: npm install --save vhtml 用法 // import the library: import h from 'vhtml' ; // tell babel to transpile JSX to h() calls: /** @jsx h */ // now render JSX to an HTML string! let items = [ 'one' , 'two' , 'three' ] ; document . body . innerHTML = ( < div xss=removed> < h1> Hi
【文件预览】:
vhtml-master
----.travis.yml(43B)
----.eslintrc(1KB)
----rollup.config.js(556B)
----package.json(2KB)
----test()
--------vhtml.js(4KB)
----LICENSE(1KB)
----src()
--------vhtml.js(1KB)
--------empty-tags.js(166B)
----.gitignore(63B)
----README.md(2KB)
----.editorconfig(236B)

网友评论