dillon1000/react

Commit

DevTools: Only show StrictMode badge on root elements (#23012)

* DevTools: Only show StrictMode badge on root elements

Showing an inline non-compliance badge for every element in the tree is noisy. This commit changes it so that we only show inline icons for root elements (although we continue to show an icon for inspected elements regardless).
Browse files
Changed paths1 file
First-parent comparison
M packages/react-devtools-shared/src/devtools/views/Components/Element.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…