JSFiddle - React, Tailwind, and code Playground
JavaScript
var context = new webkitAudioContext();
var scr = context.createScriptProcessor(1024,1,1);
// uncomment the line below and onaudioprocess will start
//scr.connect(context.destination);
scr.onaudioprocess = function(){
console.log('test');
};