Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

why do you have to set key prop in react

Because in that way React knows specificaly which element you want to re-render
or manipulate. With no keys, that it's impossible
 
PREVIOUS NEXT
Tagged: #set #key #prop #react
ADD COMMENT
Topic
Name
6+1 =