tsx-dom
Version:
A simple way to use tsx syntax to create native dom elements using document.createElement.
34 lines (27 loc) • 357 B
Markdown
in your tsconfig.json:
```json
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h"
// ...
}
// ...
}
```
Or with the new JSX Transform:
```json
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "tsx-dom"
// ...
}
// ...
}
```
```bash
npm i tsx-dom
```
Enable TSX parsing