What is true for the keys given to a list of elements in React?

Q & ACategory: React JSWhat is true for the keys given to a list of elements in React?
Admin Staff asked 2 years ago

What is true for the keys given to a list of elements in React?

a) Unique in the DOM.

b) Unique among the siblings only.

c) Do not require to be unique.

d) None of the above.

1 Answers
Admin Staff answered 2 years ago

b) Unique among the siblings only.