When I encountered the Network Error
when developing with AWS Cognito I panicked. I was connected to the internet so why am I getting a Network Error? Even the Console output was not helpful.

This happened to me during User Registration and Login.
Why is the Network Error
happening?
By default, a type=submit
in a form
element will automatically refresh the page when it is clicked or triggered.