I added the attribute required in input type="checkbox"
   return (
     <form onSubmit={handleSubmit} action="/questions" method="post">
       <div>
         <label name="agreed">
           <input type="checkbox" required name="agreed" />
             I agree
         </label>
       </div>
     </form>
   );
But when you click on the submit form button an error appears
An invalid form control with name='agreed' is not focusable.
I would like to see a standard browser warning. Is it real?
 
    