将 Jade 模板编译为 React.DOM 表达式

时间:2021-06-08 15:57:11
【文件属性】:
文件名称:将 Jade 模板编译为 React.DOM 表达式
文件大小:24KB
文件格式:ZIP
更新时间:2021-06-08 15:57:11
React Integration jade-react 将 Jade 模板编译为 React 脱糖 JSX。 .container-fluid.readme .row h1= this.storeName ul 每个产品在 this.products li | product = product.title into function () { function map (obj, fn) { if ('number' === typeof obj.length) return obj.map(fn); var result = [], key, hasProp = {}.hasOwnProperty; for (key in obj) hasProp.call(obj, key) && result.push(fn(key, obj[key])); 返回结果; } return React.DOM.div({ "className": "container-fluid readme" }, React.DOM.div({ "className": "row" }, React.DOM.h1(null, this.st
【文件预览】:
jade-react-master
----package.json(785B)
----test()
--------compilation-test.coffee(1KB)
--------fixtures()
--------helpers()
----Readme.md(897B)
----src()
--------class-expression-compiler.coffee(459B)
--------class-array-expression-compiler.coffee(1KB)
--------compiler.coffee(8KB)
--------main.coffee(161B)
----Gulpfile.coffee(257B)
----.gitignore(14B)

网友评论