GithubHelp home page GithubHelp logo

tehshrike / awesome-sveltejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sveltejs/integrations

0.0 3.0 0.0 147 KB

A curated list of delightful Svelte resources

Home Page: http://svelte.technology

awesome-sveltejs's Introduction





Svelte is among the fastest libraries to build user interfaces. Contrary to React, Vue, Inferno — Svelte has no runtime. Components are written using HTML, CSS and JavaScript (plus a few extra bits you can learn in under 5 minutes). During your build process Svelte compiles them into tiny, standalone/deduplicated JavaScript modules. With static analysis, Svelte makes sure that the browser does as little work as possible. Other than being fast and weightless, Svelte has the lowest memory footprint after hand-written vanilla JavaScript. Svelte can render on both client and server.

Open in REPLContext





Contents




Examples

REPL

Basics

Two-way Bindings

Nested Components

Window Component

SVG

Transitions (Experimental)

GUIs

Apps

PoCs



Principles

Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time.

Small number of methods you can use to control a component, in addition to any custom methods you add.

Components are built on HTML, CSS and JavaScript. There's very little extra stuff to learn.

Components are self-contained and reusable in different contexts. CSS is scoped by default.

Often, your program will use values that depend on other values – for example, you might have a filtered list, which depends on both the list and the filter. Svelte allows you to express these dependencies in computed properties, which are recalculated whenever those dependencies change.

Simple way to use functions within a component.

Customize a component with your own methods.

Components are assumed to be in the HTML namespace. Svelte allows to specify the namespace so that you can nest SVG-based components.

Svelte components can contain other Svelte components.

Embed a component within itself.

A convenient way to declaratively add event listeners to window.

Tag-based event handlers with the on:[event] syntax.

Add custom event handlers like longpress.

An excellent way for nested components to communicate with their parents.

Store a reference to particular DOM nodes or components with ref:[name] and access it with this.refs.[name].

Render Svelte components in Node.

Bindings are declared with bind:[attribute]. As well as DOM elements, you can bind to component data properties. It is optional.

First-class SVG support, including SSR.

Makes it easy to build custom controls for <audio> and <video>.

Allows for non-standalone components to prevent duplication.





Starters

Resources

Articles

Utilities

Plugins

Routing

Miscellaneous

Components

Benchmarks

Community





License

CC0

awesome-sveltejs's People

Contributors

alexander-shvets avatar brakmic avatar conduitry avatar flagello avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.