Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbestad/universal-jsx
A standalone JSX compiler
https://github.com/robbestad/universal-jsx
Last synced: 20 days ago
JSON representation
A standalone JSX compiler
- Host: GitHub
- URL: https://github.com/robbestad/universal-jsx
- Owner: robbestad
- License: other
- Created: 2015-08-11T06:18:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-11T07:07:04.000Z (over 9 years ago)
- Last Synced: 2024-11-29T20:10:00.511Z (24 days ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
#Universal-JSX
Universal-JSX is allows you to write JSX syntax in your JavaScript code, like this:
```html
var clickyComponent = Universal.createComponent({
initialState: {
clicks: 0
},
render() {
let clickFunc = () =>{
this.setState({clicks: this.state.clicks++ });
}
return ()
The Click App
Why not click me?
Click stats
You have clicked on the button {this.state.clicks} times
}
});
```## Related Modules
* [universal-jsx-loader](https://github.com/svenanders/universal-jsx-loader) - Webpack loader for UniversalJS.
## ISC Licensed