Replies: 1 comment
-
Could you elaborate what you propose we should do by showing some code? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I have a doublt reagrding
Writing performant components - Remove key prop
(https://shopify.github.io/flash-list/docs/fundamentals/performant-components/#remove-key-prop):From my understanding:
map()
mean under parent component<></>
, there would be 4 element<Text />
<Text />
has the same component type, andkey
can help React Compiler to identify which component need to be compared with last render(otherwise it cannot be optimized)a === b
, they should point to the same memory address.item.id
is the same string, it doesn't mater ifitem
has diffrent address or notI think we should
key
prop in rendering map items, andRegards,
Alex
Beta Was this translation helpful? Give feedback.
All reactions