This is a simple demo of @crossaudio/oscilloscope. View the source to see how it works. It uses plain javascript, but could be loaded in react, or even some native implementation of canvas. Due to browser-security, you will need to click on the page or interact with a slider to start the synth.