Home / Report Question

Q. What happens if you use the same key for elements in a list?
  • A. React warns but works fine
  • B. Only the first element renders
  • C. Unexpected behavior may occur
  • D. Nothing happens