sudheerj / reactjs-interview-questions

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!
38.89k stars 9.24k forks source link

resolved confusion in "key" prop section #265

Closed alivarastepour closed 1 year ago

alivarastepour commented 1 year ago

stating the "key" prop should be provided when creating arrays in reactjs is a little confusing and misleading. you don't need to provide it EVERY time you create an array; it is needed when you are using map to render data in array.

sudheerj commented 1 year ago

Agreed. Thanks for PR