Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 321 Bytes

checklist.md

File metadata and controls

12 lines (10 loc) · 321 Bytes
  1. Add key when rendering lists
  2. WE suggest you never compare the object with another object with strict comparison. It could produce a lot of bugs. Compare object using their unique identifier (id, title)

BAD EXAMPLE:

if (cat === selectedCat) {

GOOD EXAMPLE:

if (cat.id === selectedCat.id) {