【文件属性】:
文件名称:vue2react:将Vue组件转换为React组件
文件大小:2.3MB
文件格式:ZIP
更新时间:2021-05-04 02:46:45
TypeScript
vue2React
将Vue组件转换为React组件的工具。
现在支持转换SFC(.vue)文件。
有两种使用转换工具的方法:网页或cli。
网页
为了获得更好的性能,建议通过Chrome访问它。
演示屏幕在这里。
命令行界面
安装
npm i vue2react -g
或者
yarn add vue2react -g
用法
bash的例子
vtr -i hello.vue -o ./screen -n nihao.js
vtr hello.vue ./screen nihao.js
vtr hello.vue
录像机帮助信息
Usage: vtr [options]
Options:
-V, --version output the version number
-i, --input the input path for vue component
-o
【文件预览】:
vue2react-master
----nginx.conf(953B)
----bin()
--------vtr(2KB)
----example()
--------demo2()
--------demo1()
----.sentryclirc(153B)
----docs()
--------index.html(261B)
--------common()
--------index.tsx(477B)
--------components()
----package.json(3KB)
----tslint.json(131B)
----.github()
--------workflows()
----LICENSE(1KB)
----global.d.ts(63B)
----src()
--------reactTemplateBuilder.ts(655B)
--------jsxElementGenerator.ts(6KB)
--------reactVisitor.ts(4KB)
--------formatThis.ts(2KB)
--------reactIterator.ts(600B)
--------scriptVisitor.ts(8KB)
--------templateIterator.ts(714B)
--------scriptIterator.ts(4KB)
--------utils()
--------index.ts(2KB)
----tsconfig.json(5KB)
----vue2react.png(480KB)
----docker-compose.yml(503B)
----.gitignore(78B)
----webpack.config.js(3KB)
----README.md(2KB)
----postcss.config.js(177B)
----babel.config.js(229B)