skip to Main Content

How can i set form validation in ReactJS?

Currently i am using Angular JS and using form validation as below: <div class="form-group" ng-class="{ 'has-error' : validating && form.name.$invalid }"> <label for="name" class="col-md-3 control-label">Name</label> <div class="col-md-9"> <input type="text" id="name" name="description" ng-model="name" class="form-control" required /> </div> </div> So basically if…

VIEW QUESTION
Back To Top
Search