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

Use the new JSX transform #25064

Merged
merged 2 commits into from May 23, 2023
Merged

Conversation

renchap
Copy link
Sponsor Member

@renchap renchap commented May 22, 2023

As the React 18 PR has been merge, here is the second part.

React 17 introduced a new way of handling JSX: https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html

I used the official codemod (npx react-codemod update-react-imports) to remove every import, with a few hand-made changes where the codemod did not work.

@ClearlyClaire ClearlyClaire merged commit 8f66126 into mastodon:main May 23, 2023
25 of 26 checks passed
@renchap renchap deleted the new-jsx-transform branch May 30, 2023 06:56
skerit pushed a commit to 11ways/mastodon that referenced this pull request Jul 7, 2023
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.

None yet

2 participants