How to prevent react-player from re-rendering when parent state changes in a Next.js dynamic import setup?
I’m using the ReactPlayer component from react-player library within a dynamically imported MediaPlayer component in a Next.js application. Despite applying React.memo to the MediaPlayer component and memoizing the props, the ReactPlayer still re-renders when the parent component’s state changes. How can I prevent these unnecessary re-renders?