Best of SvelteNovember 2021

  1. 1
    Article
    Avatar of sitepointSitePoint·4y

    How to Fetch Data in Svelte

    This tutorial explores how you can consume and render data from an API in your Svelte application. We’ll build a sample application that interacts and displays data provided by a REST API server. This application will allow users to fetch lists of blog posts and display them on the page.

  2. 2
    Article
    Avatar of logrocketLogRocket·4y

    Introduction to Svelte Actions

    Svelte actions are one of the less commonly used features. An action allows you to run a function when an element is added to the DOM. They can greatly simplify your code and allow you to reuse bits of logic. In this post, I’ll give two examples where a Svelte action would be useful and show why an action is the right tool for the job.

  3. 3
    Article
    Avatar of logrocketLogRocket·4y

    Build your own component library with Svelte

    Svelte is an open source JavaScript component framework for building web applications. Svelte takes a different approach than all the existing web frameworks like React, Angular, and Vue, which follow declarative, state-driven code. In this article, we are going to learn how to build a component library on our own.