JSX-TypeScript is a TypeScript fork that brings React JSX support to the language.
You can install this package with npm
npm install -g jsx-typescript
This package has the exact same structure than the typescript one; so tools which are able to use the typescript compiler should be able to use this package.
The executable is named jsx-tsc
instead of tsc
, and has the exact same options than tsc
:
JSX-TypeScript does not define React.createElement
, and treat it has a simple function call, you need a definition file for react, and I advise you to use the one provided by this repository react.d.ts
.
This version of the compiler contains special case for JSXElement
call and how it resolves type arguments in a React.createElement
, For example it only infers type argument from the jsx tag name. This behavior has been implemented to provide a better experience with the React framework, but I only have tried my compiler against the provided definition file.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4