Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
/ snabbdom-tsx Public archive

Transforms Typescript TSX into Snabbdom Virtual DOM

License

Notifications You must be signed in to change notification settings

alvivi/snabbdom-tsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published