DEV Community

loading...

Discussion on: You no longer need to import React from 'react'

Collapse
titungdup profile image
dhondup Author

Hi @seanmclem , It seems like Esbuild, which Vite is based on, doesn't use Babel to compile JSX and I think the new JSX transform requires Babel for all the JSX conversion. I'll get back to you if I can confirm this. Thanks for pointing it out.

Collapse
titungdup profile image
dhondup Author • Edited

I'm very positive Babel is the reason.