Live example can be found here.
Referenced from here.
React + Web Audio
This is an example application that shows how to visualise audio from the microphone using the Web Audio API in React.
How to build the app
npm run build
How to run the app
npm run start
And open the browser to http://localhost:3000/.