0.4.1 • Published 8 years ago

snabbdom-tsx v0.4.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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