Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Mavvie
on Nov 11, 2021
|
parent
|
context
|
favorite
| on:
Rich Harris joins Vercel to work on Svelte full ti...
I believe you can specify a key in Svelte as well, but perhaps it's used slightly differently than react.
bdougherty
on Nov 12, 2021
[–]
Yeah it's not strictly necessary, but if you are updating the list (adding/removing especially), Svelte can know how to reuse elements properly if they are keyed. You also need keys for animations to work properly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: