Create a new Svelte 3 component to render it inside of another component

InstructorTomasz Łakomy

Share this video with your friends

Send Tweet

It's highly unlikely that we'd like to have an entire app in a single file. Instead, what we'd like to do is to spread our code across multiple components and render them in one another.

In this lesson we are going to learn how to create a <Surname /> Svelte 3 component which we're going to use in our main App.svelte file to display a user's surname.