add sound to react app code example
Example 1: play audio in react
import ReactAudioPlayer from 'react-audio-player';
<ReactAudioPlayer
src="my_audio_file.ogg"
autoPlay
controls
/>
Example 2: react-sound example
jsimport useSound from 'use-sound';import useSound from 'use-sound';
.npm__react-simple-code-editor__textarea:empty {
-webkit-text-fill-color: inherit !important;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.npm__react-simple-code-editor__textarea {
color: transparent !important;
}
.npm__react-simple-code-editor__textarea::selection {
background-color: #accef7 !important;
color: transparent !important;
}
}