concept npm package in category svelte

appears as: npm packages, n npm package
Svelte and Sapper in Action

This is an excerpt from Manning's book Svelte and Sapper in Action.

Running Svelte apps outside of the REPL in this way will be covered in more detail later.

14.6 Web components

The Web Components standard defines the ability to create custom elements. These are custom HTML elements that can be used in web frameworks (such as React, Vue, and Angular) and when using no framework (just JavaScript and the DOM).

import Counter from './Counter.svelte';
import Greet from './Greet.svelte';
export {Counter, Greet};