Skip to content

Update components to use new JSX transform #11553

@mfrances17

Description

@mfrances17

Describe the enhancement or change
This is a follow up to #11524 in which the new JSX transform was introduced, which removes the need to import React in every file that contains JSX. Currently the linter is configured to warn on all violations. This issue will require running the react codemods to automatically fix the components that import react, but may require some manual work as well so we comply, such as in the case of named imports instead of importing * from react.

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?
No

Any other information?
The jsx transform changes were actually introduced in React 17, but will be required to add support for React 19.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions