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

Replace deprecated global JSX namespace #4333

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

Janpot
Copy link
Contributor

@Janpot Janpot commented Jul 19, 2024

The global JSX namespace is deprecated. This Replaces it with React.JSX.

Motivation:
This will make the library compatible with [email protected] (Upcoming @types/react version). It comes at no backwards compatibility cost, the React.JSX namespace is already used in some places. At MUI we need @types/react@19 compatibility (but not necessarily react@19 compatibility) for mui/material-ui#42824.

Copy link
Contributor

@quantizor quantizor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@quantizor quantizor merged commit 8831f2e into styled-components:main Aug 29, 2024
5 checks passed
@Janpot Janpot deleted the fix-jsx-namespace branch August 29, 2024 05:29
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.

2 participants