TLDRReact uses keys to optimise performance. Keys help React identify which items have changed, are added, or are removed. In some cases you don’t have the latest state at your disposal. For someone who had no idea why they were in the “the-scenes” in React, I had to read a lot to get my head around.
2 Comments
Sort: