Coding task · Svelte and SvelteKit course · Module 4: Props and Events

Practice: A Callback as a Prop

Pass a callback as a prop

Task

Complete the code so that clicking the button calls the onSelect function