Lets say you want to make form input that shows the user an error message if they leave it blank. If you typically write controlled inputs, you might do something like this simplified example:
class ControlledInput extends Component {
state = { fields: { username: "" }, errors: {} };