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
Uh oh!
There was an error while loading. Please reload this page.
-
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, andkeycan 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.idis the same string, it doesn't mater ifitemhas diffrent address or notI think we should
keyprop in rendering map items, andRegards,
Alex
Beta Was this translation helpful? Give feedback.
All reactions