Y
Hacker News
new
|
ask
|
show
|
jobs
by
s-lambert
1685 days ago
Both Svelte[0] and React[1] are the same in this regard, the key is there as an optimization and isn't required in either framework. The only difference is that React's key is on the element whereas Svelte is as part of the each expression.
[0]
https://svelte.dev/tutorial/keyed-each-blocks
[1]
https://reactjs.org/docs/lists-and-keys.html