Skip to content

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
@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