Vanilla-JSX
Vanilla-JSX is a library that converts JSX into vanilla HTML Elements.
Features
- Converts JSX to vanilla HTMLElements
- Translates className attribute into class
- Supports event listeners as attributes like
<div on-click={someFunction}></div>
- Supports
ref
attribute withprocess
helper
API
get : HTMLElement get : Object<string HTMLElement> : HTMLElement : string : voidexport function createClass(object): Component
Example
'use babel' /** @jsx jsx */// ^ the above comment is required for babel const Message = const messageFromBob = messageFromBobdocumentbodymessageFromBob const messageFromJohn = messageFromJohndocumentbody
LICENSE
This project is licensed under the terms of MIT License, See the LICENSE file for more info