It’s a wise thing to create state on the page level rather than on an individual element. It’s a lot easier later to edit the state if it’s in one place.