# simple-tsx

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

Latest version **1.2.2** (published 2022-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-tsx
pnpm add simple-tsx
yarn add simple-tsx
bun add simple-tsx
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2022-08-27 |
| First published | 2022-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | PythonCoderAS |
| Maintainers | pythoncoderas |

## Links

- npm: https://www.npmjs.com/package/simple-tsx
- Repository: https://github.com/PythonCoderAS/simple-tsx
- Homepage: https://github.com/PythonCoderAS/simple-tsx#readme
- Issues: https://github.com/PythonCoderAS/simple-tsx/issues
- npm.io page: https://npm.io/package/simple-tsx

## Recent versions

- 1.2.2 (latest) — 2022-08-27
- 1.2.1 — 2022-08-27
- 1.2.0 — 2022-08-27
- 1.1.0 — 2022-08-09
- 1.0.2 — 2022-08-09
- 1.0.1 — 2022-08-09
- 1.0.0 — 2022-08-09

## README

# 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:

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

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

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

---
_Source: https://npm.io/package/simple-tsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
