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

[DevTools] Support REACT_LEGACY_ELEMENT_TYPE for formatting JSX #30779

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

sebmarkbage
Copy link
Collaborator

DevTools shouldn't use react-is since that's versioned to one version of React. We don't need to since we use all the symbols from shared/ReactSymbols anyway and have a fork of typeOf that can cover both.

Now JSX of old React versions show up with proper JSX formatting when inspecting.

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:05pm

DevTools shouldn't use react-is since that's versioned to one version of
React. We don't need to since we use all the symbols from shared/ReactSymbols
anyway and have a fork of typeOf that can cover both.
@sebmarkbage sebmarkbage merged commit 985747f into facebook:main Aug 21, 2024
184 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants