This demo uses react-html5-form to connect the form to HTML5 Form Validation API.
The package exposes components Form and InputGroup to define the corresponding scopes where we can access scope-specific state including validity.
Form
InputGroup