Regardless of whether or not I hardcode the 'command' prop to the component I get a 'oneOf' property error
import React from 'react';
import Recorder from 'react-recorder';
export default class Recording extends React.Component {
constructor (props) {
super(props);
this.state = {
command: props.command ? props.command : 'none'
};
}
render () {
return (
<div>
<Recorder command="none" />
</div>
)
}
}
My desire would be for this.state.command to be passed but that also throws the error.