Skip to content

Forms

Rebuild the application and use Events and States. Use onSubmit with the form element to catch submit events by submitting with enter or a submit button. Don't forget to prevent the default behaviour with: event.preventDefault()