Javascript – getting too many re-renders in react
I have a React component named Search where I'm iterating over data items and rendering a SearchCard component for each item. The SearchCard component contains logic for handling play and pause actions. I've noticed that the console log in the…