Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 将react语义ui复选框与redux表单集成_Reactjs_Semantic Ui_Redux Form - Fatal编程技术网

Reactjs 将react语义ui复选框与redux表单集成

Reactjs 将react语义ui复选框与redux表单集成,reactjs,semantic-ui,redux-form,Reactjs,Semantic Ui,Redux Form,我想在react语义UI中添加一个 但即使在我将复选框命名为以下内容后,它也无法将选中的值发送到服务器: <Form.Field label="The question is new to the intent library" name="newType" control={Field} component={Checkbox} /> <Form> <Form.Field label="Rating" control={Field}

我想在react语义UI中添加一个 但即使在我将复选框命名为以下内容后,它也无法将选中的值发送到服务器:

<Form.Field
  label="The question is new to the intent library"
  name="newType"
  control={Field}
  component={Checkbox}
/>
<Form>
 <Form.Field
  label="Rating"
  control={Field}
  name="rate"
  component={Rating}
  ...
 />
 <That checkbox ... />
 <Form.Field
  label="Comment"
  control={Field}
  name="comment"
  component="textarea"
 />
</Form>

此组件位于如下表单中:

<Form.Field
  label="The question is new to the intent library"
  name="newType"
  control={Field}
  component={Checkbox}
/>
<Form>
 <Form.Field
  label="Rating"
  control={Field}
  name="rate"
  component={Rating}
  ...
 />
 <That checkbox ... />
 <Form.Field
  label="Comment"
  control={Field}
  name="comment"
  component="textarea"
 />
</Form>

假设动作应在有效载荷中携带检查值,类似于评级和注释的携带方式

我被困在这里半天了
如果你注意到什么,请帮助我。谢谢

使用以下代码可以解决此问题

<Form.Field 
 control={Field}
 label="The question is new to the intent library"
 name="newType"
 component="input"
 type="checkbox"
/>