NewOldMax / react-form-validator-core

Core validator component for react forms
MIT License
94 stars 44 forks source link

Need Textarea validation #84

Closed dineshoctal closed 3 years ago

dineshoctal commented 3 years ago

I need to add the textarea and validation, how can I achieve this.

`<textarea className="form-control" name="description" placeholder="Write here.." onChange={(e) => { setMessage(e.target.value); }} validators={["required", "maxStringLength: 200"]} errorMessages={[ "Please enter credit description", "Please enter less than 200 characters", ]}

`

please advise me.

Thanks,

NewOldMax commented 3 years ago

@DineshOctal Hi, you can follow wiki example