barejsx
v0.1.1
Published
Standalone JSX-native component primitives for simple render/unrender components.
Readme
barejsx
Standalone JSX-native component primitives for simple render / unrender components.
Install
npm install barejsxTypeScript / JSX setup
Use the package itself as the JSX import source:
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "barejsx"
}
}Usage
import { Elem } from 'barejsx';
const elem = <Elem as="section">
<div class="example">
<span>Hello</span>
</div>
</Elem>;
elem.render(document.body);