News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by Mavvie on Thursday November 11, 2021 @06:51PM (#29194787)
I believe you can specify a key in Svelte as well, but perhaps it's used slightly differently than react.
Re:Rich Harris joins Vercel to work on Svelte full time by bdougherty on Thursday November 11, 2021 @07:55PM (#29195167)
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.