79290100

Date: 2024-12-18 05:55:04
Score: 2
Natty:
Report link

The child elements of your list are the fragment (<> </>), not the div. In your code the fragment is not necessary, so removing it should resolves the error, as you already use keys in <div key= ...>.

In case the fragment is required, see the answers in the following thread for setting a key for a fragment in react: Can I add a key prop to a React fragment?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: arch