Closed clintharris closed 5 years ago
@clintharris thanks for reaching out!
Regarding the first issue, I'd like to force everyone to set element keys intentionally. Of course, we can set keys inside the library but this will rewrite keys in case they set by the user.
The next example should work without any warnings
<ReactResizeDetector>
<Foo key="foo" />
<Bar key="bar" />
</ReactResizeDetector>
The second issue fixed in the v4.1.1
I'm noticing a couple of issues with v4.0.5 and how the array of children are handled.
Each child in a list should have a unique "key" prop
warning:TypeError: element is null
: