Support JSX pragmas in tsconfig.json
See original GitHub issueAmazing project!
Would be cool to have a general ES6/babel template like in https://codesandbox.io. This is especially useful for using JSX with other virtual dom libs like preact. I tried the /* @jsx h */
at the top of the module (with the react template) but it doesn’t work. Actual workaround is to redefine React.createElement but I think supporting a more general ES6/babel env out of the box is a game changer.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
TSConfig Option: jsxImportSource - TypeScript
Declares the module specifier to be used for importing the jsx and jsxs factory functions when using jsx as "react-jsx" or "react-jsxdev" which...
Read more >React - Parcel
Parcel supports JSX automatically when it detects you are using React. ... option in a tsconfig.json or jsconfig.json so that Emotion's JSX pragma...
Read more >babel/plugin-transform-typescript
This plugin adds support for the types syntax used by the TypeScript ... using the pragma option of the @babel/plugin-transform-react-jsx package.
Read more >@herp-inc/snabbdom-jsx - npm
Yet another JSX pragma for Snabbdom. Latest version: 0.9.0, last published: 4 months ... Add the following options to your tsconfig.json :.
Read more >Vanilla JSX - Medium
Before jumping into the Pragma creation, we need to learn how to parse JSX. For small modern project without old browsers support, we...
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
Another thanks for building Stackblitz and would love to see this feature implemented.
Thank you for your patience - We are launching new core technology into beta next month that should resolve this issue so this will be closed accordingly. If this issue persists, feel free to tag me or ask to reopen this issue with screenshots of the error. Thank you! 😃