0 votes
in ReactJS by
edited by
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 Answer

0 votes
by

B is the correct option. Keys given to the list of elements in React should be unique among the siblings only.

Related questions

0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
...