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 (
) } const InstrumentCommand = props => { const { command } = props return ({command.description}
Tag: {command.tag}
{command.readString}
{command.writeString}