这是indexloc提供的服务,不要输入任何密码
Skip to content

refactor: use React.JSX rather than global JSX #93

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

Merged
merged 1 commit into from
Nov 13, 2024
Merged

refactor: use React.JSX rather than global JSX #93

merged 1 commit into from
Nov 13, 2024

Conversation

marcalexiei
Copy link
Collaborator

Context & Description

Close #84.

I remove all the usage of global JSX I was able to find and replaced them with the one included inside React.

Note

I used typed named imports for it unless there there was already a import * as React from 'react',
in that case I used React.JSX instead of adding another import.

Additional related changes


While working on this I got a few ideas about some improvements to repository maintenance and DX.
I'll open separate issue to discuss them later this week.

@Valerioageno
Copy link
Member

This is a great improvement. Thanks!

@Valerioageno Valerioageno self-requested a review November 13, 2024 07:33
@Valerioageno Valerioageno merged commit 7b8165c into tuono-labs:main Nov 13, 2024
5 checks passed
@marcalexiei marcalexiei deleted the feature/react-jsx branch November 13, 2024 19:01
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.

React JSX global namespace is deprecated
2 participants