# fis-parser-react **Repository Path**: ymyang/fis-parser-react ## Basic Information - **Project Name**: fis-parser-react - **Description**: a parser plugin for fis to precompile react - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-24 - **Last Updated**: 2021-12-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fis-parser-react A parser plugin for [fis](https://github.com/fis-dev/fis) to precompile [react](http://facebook.github.io/react/). ##Usage * install this plugin (make sure you have installed [fis](https://github.com/fis-dev/fis) before). ```shell npm install -g fis-parser-react ``` * create a project project - foo.jsx - fis-conf.js * vi ``fis-conf.js`` ```javascript fis.config.set('project.fileType.text', 'jsx'); //*.jsx files are text file. fis.config.set('modules.parser.jsx', 'react'); //compile *.jsx with fis-parser-react plugin fis.config.set('roadmap.ext.jsx', 'js'); //*.jsx are exactly treat as *.js ``` * write a jsx file ```javascript /** @jsx React.DOM */ var HelloMessage = React.createClass({ render: function() { return