-
React is complaining Here is my code snippet:
What happens is that the column "Product" is displaying 3 different type of SVG icons based on the object that has true or false value Any idea what I am missing here? |
Beta Was this translation helpful? Give feedback.
Answered by
szamanr
Nov 11, 2021
Replies: 1 comment 1 reply
-
keys should be static and unique. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KoichaDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
key
is a prop that react uses under the hood to correctly re-render elements in a list when it's modified. just add it as a component prop of each item you push to the array:keys should be static and unique.