Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use new JSX transform #11328

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonkoops
Copy link
Contributor

@jonkoops jonkoops commented Dec 6, 2024

Introduces the new JSX transform which removes the need to import React in every file that contains JSX. This is a change required to add support for React 19.

Also adds linting configuration to support the new transformation, including a rule to ban the default React import (import React from 'react') in favor of named imports. The linter is set up to warn for now, as a refactor will have to come over multiple subsequent PRs.

Closes #9289

@patternfly-build
Copy link
Contributor

patternfly-build commented Dec 6, 2024

@jonkoops jonkoops force-pushed the new-jsx-transform branch 3 times, most recently from f5a566f to ebcfac4 Compare December 7, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the new JSX tranform
2 participants