Svelte · Middle · Question 38 of 75
What does use:enhance add to a form?
- ✓Correct answer: Progressive enhancement: submission via fetch without full reload, updating
form,page.formand data, and resetting the form on success - 2Client-side validation rules
- 3CSRF protection
Explanation
Without JavaScript the form still works as a regular POST. The behaviour can be customized with a submit function.