Feature Request: Add key
-prop to MenuItem
#3106
Answered
by
melloware
nimo23
asked this question in
PrimeReact
-
Please add the prop
|
Beta Was this translation helpful? Give feedback.
Answered by
melloware
Nov 27, 2024
Replies: 1 comment 2 replies
-
Menu's should already be rendering by a unique key the menu creates. Are you not seeing that or is there a bug? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But the key is just used by react for uniqueness and the component gaurantees that. What are you using key for? That is what the
data
element of the menu is for so you can add any metadata you want.