(typescript) Add JSX support to Typescript
See original GitHub issueThere’s a somewhat popular variant of TypeScript that incorporates JSX, and replaces TypeScript’s normal angle-bracket casts with the as
keyword. Source files typically end in .tsx
. It would be nice to have a language definition for this – it’s not hard to make one, but not clear how to cleanly share the bulk of the definition with typescript
.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:28
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Documentation - JSX - TypeScript
TypeScript supports embedding, type checking, and compiling JSX directly to JavaScript.
Read more >Using JSX with TypeScript - Minko Gechev
The JSX support in TypeScript is part of the roadmap for version 1.6. This means that in the next a couple of weeks...
Read more >How To Add TypeScript To React - Upmostly
How To Create a New React Project With TypeScript · npx: npx create-react-app app-name --template typescript · npm: npm init react-app app-name --template ......
Read more >Working of JSX in TypeScript | Examples - eduCBA
TypeScript works in three JSX modes. The modes are react native, react and preserve. The emit stage is affected by these modes. JSX...
Read more >Adding TypeScript - Create React App
Global installs of create-react-app are no longer supported. To add TypeScript to an existing Create React App project, first install it:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0c14f68c
In fact since we already do this for
jsx
(an alias of JavaScript) seems obvious we should add the alias, yes?