Skip to content

Instantly share code, notes, and snippets.

import React from 'react'
import {compose, lifecycle} from 'recompose'
import PropTypes from 'prop-types'
import WaveSurfer from 'wavesurfer.js'
const EVENTS = [
'audioprocess',
'error',
'finish',