question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(typescript) Add JSX support to Typescript

See original GitHub issue

There’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.

Related issues: #878, reviewable/reviewable#285

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:28
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
joshgoebelcommented, Dec 18, 2020

0c14f68c

1reaction
joshgoebelcommented, Dec 17, 2020

In fact since we already do this for jsx (an alias of JavaScript) seems obvious we should add the alias, yes?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found