how to impor audio and play in react code example
Example 1: play audio in react
import ReactAudioPlayer from 'react-audio-player';
//...
<ReactAudioPlayer
src="my_audio_file.ogg"
autoPlay
controls
/>
Example 2: play audio in react
npm install --save react-audio-player