News for hackers. Stuff that matters.
Re:React: You Might Not Need an Effect by dgb23 on Thursday March 23, 2023 @05:19AM (#35272100)
It’s useful to think about key as the telling React of the identity of a component.

Whenever you want a stateful component that can be identified by a unique name, you’ll likely want to tell that to React via key.

There are no comments on this comment yet.