The Wayback Machine - https://web.archive.org/web/20230326202630/https://github.com/PythonCoderAS/simple-tsx
Skip to content

PythonCoderAS/simple-tsx

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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";

About

A simple way to write tsx files. No babel required!

Resources

License

Stars

Watchers

Forks

Packages

No packages published