基于我在SO上找到的一些帖子,我已经在React Semantic UI中实现了一些表单验证-例如,以下内容:
required={true}
error={this.state.errors["macs"]}
我的问题是,这些React Semantic UI文档在哪里?到目前为止,我还没有运气。
[https://react.semantic-ui.com/collections/form/-特别是在Form.Field属性中。
Field Variations Required Field显示需要使用
[States Field Error Label显示具有错误属性的字段,该属性设置为显示带有指针的消息。
[Form error state with Messages显示在表单处于错误状态时显示的消息。