You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So,key is from the caller which means it can be null or not,just decided by the caller,but type is null.So,I think "these two fields are copied over directly" is not correct.
And BTW,I know what the type is from the src code's description and react-devtools.But I am not sure what the key means.Does it is what we see in the react-devtools just like type?
The text was updated successfully, but these errors were encountered:
NE-SmallTown
changed the title
Why key and type are the same?
Why key and type are copied over directly?
Apr 15, 2017
NE-SmallTown
changed the title
Why key and type are copied over directly?
Why the key and type are copied over directly?
Apr 15, 2017
In the doc:
But I check the src code:
So,
key
is from the caller which means it can benull
or not,just decided by the caller,buttype
isnull
.So,I think "these two fields are copied over directly" is not correct.And BTW,I know what the
type
is from the src code's description and react-devtools.But I am not sure what thekey
means.Does it is what we see in the react-devtools just liketype
?The text was updated successfully, but these errors were encountered: