patternfly-react
patternfly-react copied to clipboard
Use the new JSX tranform
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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Bump
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Bump
This is still relevant, can it be re-opened?
@srambach @andrew-ronaldson this should be liked to React 19 Epic.
Added it to the React 19 Initiative https://github.com/patternfly/pf-roadmap/issues/201