patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Use the new JSX tranform

Open jonkoops opened this issue 2 years ago • 7 comments
trafficstars

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.createElement does 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.

jonkoops avatar Jun 21 '23 10:06 jonkoops

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Sep 04 '23 03:09 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Nov 04 '23 14:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 04 '24 07:01 stale[bot]

Bump

jonkoops avatar Jan 04 '24 09:01 jonkoops

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Mar 05 '24 21:03 stale[bot]

Bump

jonkoops avatar Mar 06 '24 09:03 jonkoops

This is still relevant, can it be re-opened?

jonkoops avatar Mar 21 '24 08:03 jonkoops

@srambach @andrew-ronaldson this should be liked to React 19 Epic.

tlabaj avatar Dec 18 '24 15:12 tlabaj

Added it to the React 19 Initiative https://github.com/patternfly/pf-roadmap/issues/201

andrew-ronaldson avatar Dec 19 '24 13:12 andrew-ronaldson