https://github.com/lasso-js/lasso-jsx
Plugin to support compiling JSX files
https://github.com/lasso-js/lasso-jsx
Last synced: 3 months ago
JSON representation
Plugin to support compiling JSX files
- Host: GitHub
- URL: https://github.com/lasso-js/lasso-jsx
- Owner: lasso-js
- Created: 2014-09-17T14:32:57.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T17:01:56.000Z (about 8 years ago)
- Last Synced: 2024-12-27T19:39:19.778Z (10 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 3
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lasso-jsx
==============
This Node.js module is a plugin for the [Lasso.js](https://github.com/lasso-js/lasso), that provides support to precompile [Facebook React](http://facebook.github.io/react/) JSX files with the `.jsx` extension into JavaScript.
## Install
```sh
$ npm install --save lasso-jsx
```
## Usage
In your dependencies list in `browser.json`, just go ahead and all your source .jsx files
```js
[
"main.jsx",
"components/toolbar.jsx",
...
]
```
And add `lasso-jsx` as the required plugin in `lasso-config.json`
```js
{
"plugins": [
"lasso-jsx"
...
],
...
}
```
The JSX directive `/** @jsx React.DOM */` is automatically prepended to `.jsx` files if missing.