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?