Open In App

Web technologies Questions | React.js Quiz | Set-1 | Question 13

Which of the following is true about key props ?
(A) “Key” props are used to look beauty
(B) “Key” prop is a way to identify the newly added element
(C) It is one type of attribute of HTML
(D) It is not used in the array

Answer: (B)
Explanation: The key props in React.js are used for creating lists of elements in React. Keys Pops are used in React.js to check which items in the list are needed to be changed, updated, or deleted.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :