An experiment in providing the ability to easily preview the result of compiling your JSX file into Javascript. Supports compiling the whole file, or a visual mode selection. Inspired by, and based on the implementation of vim-coffee-script. This plugin handles only the JSX compilation support. For JSX highlighting and indentention, see the vim-jsx plugin.
nodeJS
- required to run react-toolsreact-tools
- NPM package which handles the compilation
- Install with Pathogen, cloning into
~/.vim/bundle
- Run
npm install
within~/.vim/bundle/jsx-compiler-vim
to grabreact-tools
:JsxCompile
Run the command in normal mode to convert the whole file, or on a visual selection to convert just a snippet. When ran, the compiled output calls out to the system to compile, then outputs the resulting Javascript into a new scratch buffer.
- Have compiled Javascript output syntax highlighted
- Look to add linting support and other helpful output