babel-plugin-react-pug:在React组件中使用哈巴狗!

时间:2021-01-31 03:38:28
【文件属性】:
文件名称:babel-plugin-react-pug:在React组件中使用哈巴狗!
文件大小:59KB
文件格式:ZIP
更新时间:2021-01-31 03:38:28
react babel jsx babel-plugin interpolation babel-plugin-react-pug 拿出JSX并使用Pug! 一个微型的高性能babel插件,可让您在JSX上使用Pug,为定义React Component模板提供了高效且易读的选择。 本质上,该插件将Pug模板转换为React函数调用。 支持React Native! 这不是用于将Pug转换为JSX的官方Pug插件。 请参阅 ! 例 在 class Profile extends React . Component { ... render ( ) { return pug ` #profile.profile__container h1.profile__name ${ this . state . name } ` } } 出 class Profile extends React . Component { ... render ( ) { return React . createElement ( 'div' ,
【文件预览】:
babel-plugin-react-pug-master
----.travis.yml(72B)
----.babelrc(132B)
----.flowconfig(71B)
----package.json(1KB)
----LICENCE(1KB)
----test()
--------index.js(1KB)
--------fixtures()
----src()
--------index.js(444B)
--------NodeBuilder.js(6KB)
--------Leash.js(4KB)
--------translations.js(2KB)
----.gitignore(90B)
----types()
--------pug.js(510B)
--------babel.js(321B)
----README.md(7KB)
----yarn.lock(120KB)
----.editorconfig(215B)
----.gitattributes(11B)

网友评论