Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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