Introduction to Svelte


Course Number: SCRPT-190
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Svelte Training Overview

Svelte is a JavaScript library for building user interfaces, but instead of running in the browser (like React and Vue), Svelte runs at build time, surgically updating the DOM. As a result, developers are able to write higher-performance applications that run faster and more efficiently.

Accelebrate's live, private Introduction to Svelte training course teaches attendees the basics of Svelte and then dives in deeper with templates, components, state, actions, and more.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand Svelte's setup requirements, components, and architecture
  • Use templates, blocks, and reactivity
  • Incorporate components and event handling
  • Know when to use two-way data binding, and when not to
  • Create and customize reusable events
  • Use custom stores
  • Work with libraries

Prerequisites

Students must have object-oriented programming experience. Some experience with JavaScript is helpful; some new language features of JavaScript and are covered/reviewed in class.

Outline

Expand All | Collapse All

What is Svelte?
  • Setup
    • Requirements
    • Development environment
    • Svelte and IDEs
  • Getting started
    • Exploring the REPL
    • Svelte in a page
    • Svelte as components
  • Svelte architecture
    • Uses a compiler
    • Outputs imperative code
    • Reactive updates to state and props
Templates and Reactivity in Svelte
  • Using variables
  • Simple event binding
  • Blocks
  • Reactivity
    • Principles
    • Changing data
    • Dealing with references
  • Managing HTML
  • Getting debugging information
Component Basics
  • Components and files
  • CSS
    • Scoping
    • Dynamically assigning classes
  • State
  • Props
  • Conditionals
  • Loops and keys
  • Simple asynchronous actions
Event Handling
  • Adding event handlers
  • In-line handlers
  • Event modifiers
  • Dispatching component (custom) events
  • Forwarding events
Data binding
  • Top-down data binding by default
  • Communication with props and events
  • Using two-way data binding
  • Svelte and Forms
Lifecycle
  • onMount
  • onDestroy
  • beforeUpdate / afterUpdate
  • tick
Actions
  • Component-level mixins
  • Akin to custom lifecycle methods
  • Customizing reusable events
  • Working with libraries
State Management
  • Stores
  • Modeled on subscriptions
  • Read-only stores
  • Derived stores
  • Customized stores
Conclusion

Training Materials

All Svelte training attendees receive comprehensive courseware.  

Software Requirements

  • Google Chrome
  • Other modern browsers as desired
  • IDE/development environment of your choice
  • Other free software and lab files that Accelebrate would specify


Svelte: New Kid on the JavaScript Block. In this article, experienced JavaScript trainer and consultant, John Paxton, discusses what Svelte has to offer and how it is different from other frameworks like Angular and React.

 
Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan