the-cc-dev / snabbdom-tsx

Transforms Typescript TSX into Snabbdom Virtual DOM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This library can be used to use Snabbdom with TSX files

How to use

Example file:

import * as Snabbdom from "snabbdom-tsx";

var i = 5;
<h1>{i.toString()} seconds elapsed</h1>

Add this to compiler options

"compilerOptions": {
    "jsx": "react",
    "reactNamespace": "Snabbdom"
}

Also add snabbdom-tsx as a npm package

About

Transforms Typescript TSX into Snabbdom Virtual DOM

License:MIT License


Languages

Language:TypeScript 100.0%