Recovering software dev, tech book author https://pragprog.com/book/lfreact/react-for-real
As in our previous exercise, we want to get the DOM node for a form component to validate the form with the HTML constraint validation API.
To validate a form with the HTML5 constraint validation API you need to call .checkValidity() on an actual <form> DOM node. How would you access the constraint validation API inside a parent component?
Here are three ways I’ve found to make React presentational components work as re-usable building blocks.