Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import { Form, Input, Radio, Field } from '@alicloud/console-components'
const FormItem = Form.Item
const RadioGroup = Radio.Group
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
}
const Demo11 = () => {
const myField = Field.useField()
const userExists = (rule, value) => {
return new Promise((resolve, reject) => {
if (!value) {
resolve()