Reactime icon indicating copy to clipboard operation
Reactime copied to clipboard

Add missing key attribute for <p class="stateprops"> list in ComponentMap

Open aspiers opened this issue 4 years ago • 0 comments

In the ComponentMap view, the tooltip viewable after clicking on a component has a list of <p className="stateprops"> elements, but React requires that every element of a list has a key attribute to enable its DOM tracking / reconciliation.

So add the missing key attribute to avoid this warning:

react.development.js:315 Warning: Each child in a list should have a unique "key" prop.

aspiers avatar Dec 11 '21 20:12 aspiers