fis-parser-react-tagjs
A parser plugin for fis to precompile react.
Usage
-
install this plugin (make sure you have installed fis before).
npm install -g fis-parser-react-tagjs -
create a project
project - foo.jsx - fis-conf.js
-
vi
fis-conf.js
fisconfig; //*.jsx files are text file.fisconfig; //compile *.jsx with fis-parser-react-tagjs pluginfisconfig; //*.jsx are exactly treat as *.js -
write a jsx file
/** @jsx React.DOM */var HelloMessage = React;React; -
release your project
cd project # get into projectfis release -d output # release your project to output dir -
you will get a compiled js file at
output/index.js
/** @jsx React.DOM */var HelloMessage = React;React;