-
Notifications
You must be signed in to change notification settings - Fork 377
Description
The React team announced a new way to transform JSX, which yields a couple of benefits:
- With the new transform, you can use JSX without importing React.
- Depending on your setup, its compiled output may slightly improve the bundle size.
- It will enable future improvements that reduce the number of concepts you need to learn React.
- There are some performance improvements and simplifications that
React.createElementdoes not allow.
This will also be required for future versions of React that will ship with the ECMAScript module syntax:
In addition to cleaning up unused imports, this will also help you prepare for a future major version of React (not React 17) which will support ES Modules and not have a default export.
nicolethoen
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done