#javascript #reactjs
#язык JavaScript #реагирует на
Вопрос:
lt;label style={lableStyle}gt;Survey namelt;/labelgt; lt;Form.Input fluid onChange={(e,d)=gt;{ setState({...state, name:d.value}) }} placeholder='Enter survey name' value={(state|| {}).name} style={{marginBottom:'20px'}}/gt; lt;label style={lableStyle}gt;Workspacelt;/labelgt; lt;Form.Select fluid placeholder='Workspace name' options={wsoptions} value={state.workspace_id} onChange={(e,d)=gt;{ console.log(d.value, "d.valuelt;lt;lt;lt;lt;") setState({...state, workspace_id:d.value}) }} /gt;
============================================= Кнопка ниже имеет другой компонент
lt;Buttongt;Savelt;/Button