A set of functions and classes to render interfaces using a custom JSX over TypeScript.
This module is part of BPL (Balmanth’s Personal Library) and provides a set of functions and classes to build interfaces using a custom JSX over TypeScript, in addition to rendering them by manipulating the browser DOM.
Using npm:
npm i @balmanth/jsx-dom
After installing the module, you need to import it as in the following example:
import * as JSX from '@balmanth/jsx-dom';
And configure your tsconfig.json
as in the example below:
{
"jsxFactory": "JSX.create",
"jsx": "react"
}
This part isn’t needed if you want just to extend the module.
…Then you can follow all the quick reference examples.