create a command for react keys
Closed this issue · 1 comments
CaptainTux commented
the topic seems to come up quite frequently, either explicitly or implicitly
I think it would be useful to have a !keys
command for such situations.
for example today I saw someone using UUIDs as keys which got generated on every render, and it wasn't the first time
perhaps something like (I'm bad with coming up with educational messages, forgive me, there should probably be another sentence or 2)
Keys are important if you map over an array and the callback returns JSX
some more here
For further information see
louis-young commented
I think this is a great suggestion. Thanks for suggesting it and raising an issue @CaptainTux.
I've tweaked the blurb slightly and raised #263.