【文件属性】:
文件名称:jsx2rv:JSX到RV编译器
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-25 22:36:04
JavaScript
jsx2rv
JSX到RV编译器。
这是我的小型手工框架RV(Rich View)的工具。 它将JSX代码编译为RV表示法。
#Example ## gulpfile.js
var rsx2rv = require ( 'jsx2rv' ) ;
gulp . task ( 'jsx2rv' , function ( cb ) {
gulp . src ( 'profile.js' )
. pipe ( rsx2rv ( ) )
. pipe ( gulp . dest ( 'compiled/profile.js' ) ) ;
} ) ;
gulp . task ( 'default' , [ 'jsx2rv' ] ) ;
#profile.js来源
var UserProfileView = function ( props ) {
【文件预览】:
jsx2rv-master
----main.js(565B)
----jsx2rv.js(4KB)
----README.md(5KB)
----.gitignore(12B)
----package.json(310B)