1.2.2 • Published 2 years ago

simple-tsx v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

simple-tsx

A simple way to use .tsx files without Babel or React!

Installation

npm: npm install --save simple-tsx yarn: yarn add simple-tsx

Usage

In your tsconfig.json file, add these following values to the compilerOptions section:

    "jsx": "react",
    "jsxFactory": "SimpleTSX.createElement",
    "jsxFragmentFactory": "SimpleTSX.createFragment",

In each of your .tsx files, put the following import line on top:

import * as SimpleTSX from "simple-tsx";
1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago