Question · Svelte and SvelteKit course · Module 4: Props and Events

Passing an Object as Props

How do you pass all of an object's properties as props?

Answer options

  • <Warrior props={warrior} />
  • <Warrior {...warrior} />
  • <Warrior *warrior />
  • <Warrior bind:warrior />

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