Sometimes we want to reach out to an API to make sure a field is okay before submitting the form. Things like usernames, emails, etc, we want to do hot validation when they change the input to produce like Username not available under the input or something
Let's create a reusable structure for this
Sometimes we want to reach out to an API to make sure a field is okay before submitting the form. Things like usernames, emails, etc, we want to do hot validation when they change the input to produce like
Username not availableunder the input or somethingLet's create a reusable structure for this