const InstrumentCommandFields = { id: null, tag: '', name: '', description: '', readString: '', writeString: '', subsystem: '', parameters: [] } const InstrumentCommandFormFields = props => { const { state, onChange } = props const toState = event => { const newState = { ...state, [event.target.name]: event.target.value } onChange(newState) } return (