dillon1000/react

Commit

[DevTools] Support REACT_LEGACY_ELEMENT_TYPE for formatting JSX (#30779)

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.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/legacy/inspectElement-test.js ModifiedM packages/react-devtools-shared/src/utils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…