MotorDefault: this.props.onChange is not a function
I was playing with the documentation.
Maybe it's just because of the way we setup the component here.
TypeError: this.props.onChange is not a function
MotorDefault/this.onKeyPress
./src/components/hardware/MotorDefault.jsx:168
165 | onKeyPress = e => {
166 | if (e.key === 'Enter') {
167 | this.setState({ edited: false });
> 168 | this.props
| ^ 169 | .onChange({
170 | property: e.target.name,
171 | value: e.target.value,