react-music-player icon indicating copy to clipboard operation
react-music-player copied to clipboard

UNSAFE_componentWillReceiveProps error in strict mode

Open johannbuscail opened this issue 2 years ago • 1 comments

Version

4.24.2

Description

I tried adding react-jinke-music-player to my website made in React JS. I imported everything and added the component. When I run the project, I get a few errors and the player isn't showing:

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code... Warning: findDOMNode is deprecated in StrictMode....

Steps

ReactDOM.render(
	<React.StrictMode>
		<ReactJkMusicPlayer
			audioLists={[{
				name: 'Test',
				musicSrc: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3',
				cover: 'https://picsum.photos/200/300',
			}]}
		/>
	</React.StrictMode>,
	document.getElementById('root'),
);

johannbuscail avatar Feb 20 '22 15:02 johannbuscail

me too, any fix please ?

alainib avatar Dec 07 '22 08:12 alainib