antonioru / beautiful-react-hooks

🔥 A collection of beautiful and (hopefully) useful React hooks to speed-up your components and hooks development 🔥
https://antonioru.github.io/beautiful-react-hooks/
MIT License
8.17k stars 577 forks source link

feat(hook): introduce useAudio hook #383

Closed playerony closed 2 years ago

playerony commented 2 years ago

Description

I've created useAudio hook which allows users to deal with music on the website. Hook automatically create an Audio element and manage its state. Hook returns an array with 3 elements: state, controls, and audioRef

It would be nice if someone else going to test this to be sure everything works correctly :)

Related Issue

198

Motivation and Context

198

How Has This Been Tested?

Docs + tests

Screenshots (if appropriate):

Screenshot 2022-07-02 at 20 21 41
github-actions[bot] commented 2 years ago

:tada: This PR is included in version 3.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: