UNPKG

tsx-dom

Version:

A simple way to use tsx syntax to create native dom elements using document.createElement.

34 lines (27 loc) 357 B
# Setup ## Install via NPM ```bash npm i tsx-dom ``` Enable TSX parsing in your tsconfig.json: ```json { "compilerOptions": { "jsx": "react", "jsxFactory": "h" // ... } // ... } ``` Or with the new JSX Transform: ```json { "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "tsx-dom" // ... } // ... } ```