Easy

React Performance: Optimizing Price Formatting Function to Prevent Unnecessary Re-renders

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