An Audio and Microphone recorder hook for react apps
npm install --save use-recorder
import React from 'react'
import { useRecorder } from 'use-recorder'
const App = () => {
const { start, stop, player } = useRecorder()
return (
<div>
<button onClick={start}>start</button>
<button onClick={stop}>stop</button>
<button onClick={() => player.play()}>play</button>
<button onClick={() => player.pause()}>pause</button>
</div>
)
}
export default App
EULA © orizens
I'm a Senior Senior Front End Engineer & Consultant at Orizens. My services include:
- React/Angular/Javascript Consulting
- Front End Consulting
- Project Code Review
- project bootstrapping and development.
publish beta https://gist.github.com/adcreare/00a10f389841dd4c97197608c9b33a7f
npm publish --tag beta