Question · Svelte and SvelteKit course · Module 13: Form Actions

How use:enhance Works

What does use:enhance do on a form?

Answer options

  • It adds CSS styles
  • It prevents the page from reloading and handles the response via AJAX
  • It validates the form
  • It encrypts the form data

You can check the correct answer by solving this task in the CodeWorlds game.