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

fix: generated JSX namespace not working with React 19 #849

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

binhpv
Copy link
Contributor

@binhpv binhpv commented Feb 20, 2025

Proposed solution

This PR fixed the issue that make the package not usable with React 19 and Typescript. The generated typing use JSX.Element namespace that is now removed from typing of React 19. The recommended way is to use JSX.React.Element. Since this package doesn't use JSX.Element directly, simply upgrade the @types/react package will fix the generated code.

Tradeoffs

Testing Done

Playwright test all pass, obviously since this is only typing change.
Generated typing files now use the correct JSX namespace.

@bokuweb
Copy link
Owner

bokuweb commented Feb 20, 2025

@binhpv Thanks

@bokuweb bokuweb merged commit e5b7020 into bokuweb:master Feb 20, 2025
6 checks passed
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