How to enabled the new JSX transform of react 17.0?
See original GitHub issueI wonder if its already possible to use the new JSX transform of react 17.0 in react-native projects.
I have updated the TS compiler to 4.1.2 but it seems more changes are required. Something needs to be added to the metro.config.js
?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Introducing the New JSX Transform – React Blog
Manual Babel Setup First, you'll need to update to the latest Babel and plugin transform. Starting from Babel 8, "automatic" will be the ......
Read more >How to enable new JSX transform in React?
How to enable new JSX transform in React? #javascript #react #babel #tutorial. The biggest feature of React 17 ...
Read more >Enable the new JSX Transform in React Native 0.64
Enable the new JSX Transform in React Native 0.64 · import React. at the top of every file. · ReferenceError: Property 'React' doesn't...
Read more >React.js 17: No New Features and New JSX Transform
One of the greatest internal improvements React 17 has is the new JSX transform. Prior to React 17, when you write JSX code,...
Read more >React 17: New JSX Transform - JavaScript in Plain English
React 17, 16.4, 15.7, and 0.14.10 released a new feature that no longer requires importing React to transform JSX. This is a comprehensive...
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
@yfunk Oh the odds 😅
I would also comment that I had to reset my metro cache by doing
npm start -- --reset-cache
👍🏽 happy coding!
@cesargdm I was just about to hit send on the same answer 😄
@pke Also make sure to change the compiler option
jsx
to'react-jsx'
intsconfig.json
and disable'react/jsx-uses-react'
and'react/react-in-jsx-scope'
if you are using ESLint.