Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Svelte - Crash Course
Rating: 4.4 out of 5(54 ratings)
1,522 students

Svelte - Crash Course

A great start to learn basics of the Svelte
Created byDemian Kostelny
Last updated 2/2023
English
English [Auto],

What you'll learn

  • How to use the main features of the Svelte (components, rendering, reactivity, await blocks, and more)
  • Building a simple practical app with Svelte
  • See how to work with Svelte Kit
  • Use Svelte in development

Course content

1 section11 lectures1h 12m total length
  • Introduction, app creation2:47

    Install svelte, create a new app from the template, install dependencies, and run dev server to see an app built with vanilla JavaScript, no dependencies, and simple reactivity and props.

  • Basics of the Svelte13:27

    Master the basics of Svelte by creating components, exporting props, and building functions, variables, and methods, then implement reactivity, events, and loops with if statements to render dynamic content.

  • Practice: Create a simple notes app11:55

    Build a simple notes app in Svelte by creating a notes array, adding, editing, and deleting notes, and rendering them with a form and text area.

  • Communication in components12:13

    Discover how to enable communication between Svelte components by using props and event dispatchers to handle create, edit, and delete actions across node and form components.

  • Slots in components3:49

    Explore slots in svelte components to insert custom content into a header, including named slots like menu and subtitle for flexible component composition.

  • Use $ as reactive statement3:27

    Learn to use the dollar sign as a reactive statement in Svelte by binding inputs to a variable and observing changes in the console while updating the page title dynamically.

  • Fetching data in Svelte3:11

    Learn how to fetch data in a Svelte app using the on mount lifecycle function, call an API like JSON placeholder, parse JSON, and render results.

  • Store in the app5:11

    Learn how to use Svelte stores by building a counter with a writable store, subscribing to updates, and implementing increment and decrement with local storage options for persistence.

  • Svelte Kit - Setup a new application7:21

    Set up a new SvelteKit application by choosing a template and installing dependencies. Run the local dev server and scaffold routes, layouts, and slots for dynamic pages.

  • Building data fetching with dynamic routes7:43

    Fetch data from a web API using dynamic routes in Svelte by building a planet detail page that retrieves and displays planet name, population, gravity, and terrain.

  • Conclusion0:56

    Explore the essentials of Svelte in this crash course conclusion: master events, handle input fields and text areas, leverage reactivity, and apply common lifecycle hooks to build real projects.

Requirements

  • Basics of the HTML/CSS
  • Basic level of JS
  • Understood how Node js and NPM work

Description

The main idea of this course is to teach you how to use the Svelte framework (better to call compiler not a framework) to build a friendly front-end app and start to use this framework in your daily job. We are going to talk about the main ones of this framework: components, reactivity, rendering, data fetching, and others. For you as a beginner, it will be a great start in Svelte.


As you know Svelte is raising in popularity, and more and more developers starting to use Svelte to build fast reactive front-end applications that can work with their API. The community of the Svelte becoming bigger every day - and now you can join this community and see all features of the Svelte. It's a really easy framework to learn and understand and also if you don't have any experience with front-end frameworks like Vue or React - that's not a problem because in this course we are going to talk only about the basics of the Svelte, so, you will understand everything.


And yes, we are going also to see the basic use of the Svelte Kit - a toolkit that we can use to build a full Svelte front-end application (but sometimes this toolkit is also used to build a custom API that will work with MongoDB).

Who this course is for:

  • Beginner in Svelte Framework