Closed alamenai closed 1 year ago
A key is a special string attribute.
key
I am just confused if the key has only the string type or it can has other types ( number ).
string
number
Key can accept string or number but React will convert it to string type inside. I will update the answer to avoid the confusion.
Question 19
I am just confused if the
key
has only thestring
type or it can has other types (number
).