Allow JSX pragmas (enable editing of tsconfig)
See original GitHub issueHi @EricSimons @apai4!
This project looks amazing. I tried to create a simple starter for Hyperapp, but it keeps telling me that React
is not defined.
I tried using the JSX pragma like this: /** @jsx h */
, but it made no difference.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
Enabling the option allows importing JSON, and validating the types in that JSON file. ts. // @filename: settings.json. {. "repo" ...
Read more >Render rich controls with JSX (and TypeScript)
Step 1: Install the TypeScript definitions · Step 2: Enable JSX compilation · Step 3: Create a tsx file for the controls ·...
Read more >Custom elements in React using a custom JSX pragma
Example using a custom JSX pragma for enable better tooling for custom elements ... A element, by definition and spec, cannot accept complex ......
Read more >TypeScript | Preact: Fast 3kb React alternative with the same ...
If you use TypeScript within a Babel toolchain, set jsx to preserve and let Babel handle the transpilation. You still need to specify...
Read more >Cannot use JSX unless the '--jsx' flag is provided
However, I am still getting the error when I am trying to edit .tsx files. Below is my tsconfig file. { "compilerOptions": {...
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
@jbucaran thanks for the kind words! And absolutely — ability to edit TSConfig/etc should be landing soon, so that should allow you to do this: https://github.com/Microsoft/TypeScript/issues/9582#issuecomment-260118063
Will circle back once we open up editing of TSConfig! 👍
Looks like this adding /** @jsx h */ before import is working now. So if you’re getting the react is not defined please do this.