3 ms·
I believe you can specify a key in Svelte as well, but perhaps it's used slightly differently than react.
by Mavvie 5y ago
I believe you can specify a key in Svelte as well, but perhaps it's used slightly differently than react.
- bdougherty 5y agoYeah 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.