mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
456 B
TypeScript
19 lines
456 B
TypeScript
import * as React from 'react';
|
|
|
|
import { ReactMic } from 'react-mic';
|
|
|
|
class ReactMicTest extends React.Component {
|
|
render() {
|
|
return (
|
|
<ReactMic
|
|
record={true}
|
|
className="sound-wave"
|
|
onStop={data => console.log(data)}
|
|
onData={data => console.log(data)}
|
|
strokeColor="#000000"
|
|
backgroundColor="#FF4081"
|
|
/>
|
|
);
|
|
}
|
|
}
|