use-audiate
What is this?
A React hook to detect and enable auto-playing audio content if it has been blocked by Chrome's autoplay policy.
Installation
yarn add use-audiate
Usage
;; const App: React.FC = { const audioContextState isEnabled = ; return <pre> <code>JSON</code> </pre> ;};