Check out example codes for "play sound css". It will help you in understanding the concepts better.

Code Example 1

<style>
  embed { display: none; }
  button:active + embed { display: block; }
</style>

<button>Play Sound</button>
<embed src="path-to-audio-file.mp3" />
			OR
<object data="path-to-audio-file.mp3"></object>

Learn ReactJs, React Native from akashmittal.com