Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callmecavs/understated
Render stateless components and JSX to real DOM.
https://github.com/callmecavs/understated
components dom jsx
Last synced: 15 days ago
JSON representation
Render stateless components and JSX to real DOM.
- Host: GitHub
- URL: https://github.com/callmecavs/understated
- Owner: callmecavs
- Created: 2017-07-10T13:38:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T00:32:01.000Z (about 7 years ago)
- Last Synced: 2024-09-15T18:16:01.493Z (4 months ago)
- Topics: components, dom, jsx
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# understated
[![understated on Travis](https://img.shields.io/travis/callmecavs/understated.svg?style=flat-square)](https://travis-ci.org/callmecavs/understated) [![understated on NPM](https://img.shields.io/npm/v/understated.svg?style=flat-square)](https://www.npmjs.com/package/understated) [![understated Downloads on NPM](https://img.shields.io/npm/dm/understated.svg?style=flat-square)](https://www.npmjs.com/package/understated) [![Standard JavaScript Style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)
Render stateless components and JSX to real DOM.
## Install
```sh
$ npm i understated --save
```## Use
```javascript
import {
h,
render
} from 'understated'// tell babel to use h as the JSX pragma
/** @jsx h */// create a component
const Component = props => (
{ props.text }
)// render it
render(
,
document.body
)
```## See Also
* [understated-cli](https://github.com/callmecavs/understated-cli) - Create understated sites with no configuration.
## License
[MIT](https://opensource.org/licenses/MIT). © 2017 Michael Cavalea