Easy

You're debugging a performance issue in a React component. The team lead mentions that unnecessary re-renders might be the culprit. What's the problem in this code?

Choose an option below