没有合适的资源?快使用搜索试试~ 我知道了~
babel-plugin-react-pug:在React组件中使用哈巴狗!
共53个文件
js:39个
pug:4个
md:1个
需积分: 17 1 下载量 197 浏览量
2021-01-31
03:38:28
上传
评论
收藏 59KB ZIP 举报
温馨提示
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.zip (53个子文件)
babel-plugin-react-pug-master
.travis.yml 72B
.babelrc 132B
.flowconfig 71B
package.json 1KB
LICENCE 1KB
test
index.js 1KB
fixtures
extend-prepend-template
test.pug 71B
expected.js 315B
actual.js 193B
class-names-attributes
expected.js 154B
actual.js 98B
nested-pug-functions
expected.js 168B
actual.js 84B
nested-interpolation
expected.js 188B
actual.js 120B
miscellaneous-attributes
expected.js 149B
actual.js 93B
multiple-attributes
expected.js 125B
actual.js 76B
extend-append-template
test.pug 65B
expected.js 315B
actual.js 197B
conditional-operators
expected.js 222B
actual.js 149B
class-name-attributes
expected.js 119B
actual.js 62B
iteration-interpolation
expected.js 268B
actual.js 141B
extend-template
test.pug 39B
expected.js 239B
actual.js 173B
multiple-interpolations
expected.js 126B
actual.js 99B
text-interpolation
expected.js 139B
actual.js 82B
whitespace-alternatives
expected.js 200B
actual.js 112B
component-interpolation
expected.js 131B
actual.js 92B
include-template
test.pug 42B
expected.js 296B
actual.js 130B
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
共 53 条
- 1
资源评论
西西里上尉
- 粉丝: 24
- 资源: 4667
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 苏琪 2022107 2210402125.zip
- 1ec494e2-d17a-4a76-827d-462434a8d837.zip
- SQL语言教程及项目案例
- 区块链大作业-基于以太坊Geth和web3.js开发的药品溯源系统源码(95分以上).zip
- 2.word表格型简历8套.zip
- 彩虹易支付用户中心美化主题 模版源码
- 基于STM32F103VET6单片机 LQFP100封装最小系统核心板硬件(原理图+PCB)工程文件.zip
- DB2 9.5 安装包windows64位
- 38550答案--离散数学及其应用(英文版·第7版)[奇数题].zip
- 区块链大作业-基于以太坊Geth和web3.js开发的药品溯源系统源代码(高分项目).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功