How to validate ant design formitems without using getFieldDecorator in reactjs?

I do it like this

<Form.Item
  help={HasError && meta.error}
  validateStatus={HasError ? "error" : "validating"}
>
  <Input {...input} {...props} className={classes.Input}></Input>
</Form.Item>

According to the docs,

We provide properties like validateStatus help hasFeedback to customize your own validate status and message, without using Form.create and getFieldDecorator.

Also, it seems there is a validator prop (amongst others) that you can use to write your own validator function.