Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/robbestad/svenjsx

JSX-support for SvenJS
https://github.com/robbestad/svenjsx

Last synced: about 1 month ago
JSON representation

JSX-support for SvenJS

Awesome Lists containing this project

README

        

# SVENJSX

SVENJSX is a support tool for [SvenJS](https://github.com/svenanders/svenjs). It allows you to write JSX syntax in your _render_ code, like this:

```html
var Sven = require("svenjs");
var clickyComponent = Sven.create({
initialState: {
clicks: 0
},
render() {
let svenFunc = () =>{
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

* [svenjsx-loader](https://www.npmjs.com/package/svenjsx-loader) - Webpack loader for SVENJSX.

## ISC Licensed