I am creating a form using ReactJS where the input fields will be stored in array and string.
If the field is in string, I can validate and is working fine like below: