【文件属性】:
文件名称:jsxr:JSX转换,用于渲染真实的DOM节点
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-15 13:52:13
JavaScript
jsxr(JSX Real)
jsxr是一种无需React即可呈现真实DOM节点的转换。 它支持自定义组件和内联样式。 自定义组件变量必须为PascalCase,才能与Babel JSX Transpiler一起正常使用。 内联样式应为camelCase(marginTop而不是margin-top)。
安装
npm install jsxr
用法示例
jsxPragma
import jsxr from 'jsxr' ;
// The jsxPragma can also be configured in Babel
/** @jsx jsxr */
// Note that custom components should be written in PascalCase.
// Otherwise, the Babel JSX transpiler will pass the
【文件预览】:
jsxr-master
----gulpfile.babel.js(486B)
----.eslintrc(421B)
----src()
--------jsxr.js(1KB)
----.npmignore(5B)
----LICENSE(1KB)
----test()
--------jsxr.js(1KB)
----README.md(3KB)
----.gitignore(159B)
----package.json(948B)