https://github.com/helidium/jsx-cito
JSX Transformer
https://github.com/helidium/jsx-cito
Last synced: about 2 months ago
JSON representation
JSX Transformer
- Host: GitHub
- URL: https://github.com/helidium/jsx-cito
- Owner: Helidium
- License: other
- Created: 2015-12-10T18:09:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-11T14:45:05.000Z (over 10 years ago)
- Last Synced: 2025-03-22T07:01:43.542Z (about 1 year ago)
- Language: JavaScript
- Size: 741 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# jsx-cito
*The current version of CitoJS JSX is based on version 0.12.2 of React's JSX Transformer.*
For unknown tag names, an `b()` call will always be generated. This should allow
you to use JSX if you're also implementing custom types.
If you make use of [JSX Spread Attributes](http://facebook.github.io/react/docs/jsx-spread.html),
the resulting code will make use of `Object.assign()` to merge attributes - if
your code needs to run in environments which don't implement `Object.assign`
natively, you're responsible for ensuring it's available via a
[shim](https://github.com/ljharb/object.assign), or otherwise.
Other than that, the rest of React's JSX documentation should still apply:
* [JSX in Depth](http://facebook.github.io/react/docs/jsx-in-depth.html)
* [JSX Spread Attributes](http://facebook.github.io/react/docs/jsx-spread.html)
* [JSX Gotchas](http://facebook.github.io/react/docs/jsx-gotchas.html) - with
the exception of `dangerouslySetInnerHTML`
* [If-Else in JSX](http://facebook.github.io/react/tips/if-else-in-JSX.html)
### Command Line Usage
```
npm install -g jsx-cito
```
```
jsx-cito --watch src/ build/
```
To disable precompilation from the command line, pass a `--no-precompile` flag.
Run `jsx-cito --help` for more information.
## Related Modules
* [msx](https://github.com/insin/msx) - forked plugin.
## MIT Licensed
=======
# jsx-cito