Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/robbestad/svenjsx
- Owner: robbestad
- Created: 2015-11-27T12:28:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T06:59:59.000Z (over 6 years ago)
- Last Synced: 2024-11-29T22:05:34.109Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
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