SlideShare a Scribd company logo
Presented by
| Udith Indrakantha | SE Intern @ Geveo Australasia
 Introduction
 High level Comparison with A, R, V
 History of Svelte
 What is Svelte?
 Features of Svelte
 Lifecycle Hooks
 Store with a Demo
 Drawbacks of Svelte
 Demo
 Conclusion
Svelte
A High-Level Comparison with Other
Frameworks
>> Repos of the projects
Performance 93 80 94 91
No. of Lines 2146 2050 2076 1116
Size 149.3KB 193KB 41.8KB 9.7KB
>> For other frameworks
29 Nov 2016
19 April 2018
21 April 2019.
Rich Harris
Svelte
Svelte
 Less Code
 No Virtual DOM
 Truly Reactive
Svelte
Svelte
React Code Svelte Code
Svelte
Svelte
>> To example
Svelte
Svelte
onMount(callback: () => void)
The onMount function schedules a callback to run as soon as the component has been mounted to the D
If the onMount callback returns a function, that function will be called when the component is destroyed.
onDestroy(callback: () => void)
The onDestroy function schedules a callback to run as soon as the component has been destroyed.
The beforeUpdate function schedules work to happen
immediately before the DOM has been updated.
afterUpdate is used for running code once the DOM is in
sync with your data.
* Note that beforeUpdate will first run before the component
has mounted
import { tick } from ‘svelte’;
await tick()
 Unlike other functions, you can call it anytime.
 Returns a promise that resolves as soon as any pending state changes have been applied to the DOM.
>> The example
Svelte
Svelte
Svelte
Svelte
Svelte
Svelte
Svelte
Svelte
Svelte

More Related Content

PDF
Svelte JS introduction
Mikhail Kuznetcov
 
PPTX
Learning Svelte
Christoffer Noring
 
PDF
Svelte the future of frontend development
twilson63
 
PDF
Pros & cons of svelte
ElenorWisozk
 
PDF
Svelte as a Reactive Web Framework
University of Moratuwa, Katubedda, Sri Lanka
 
PPTX
Getting started with Svelte Presentation
Knoldus Inc.
 
PPTX
An introduction to Vue.js
Pagepro
 
PDF
Introduction to Flutter - truly crossplatform, amazingly fast
Bartosz Kosarzycki
 
Svelte JS introduction
Mikhail Kuznetcov
 
Learning Svelte
Christoffer Noring
 
Svelte the future of frontend development
twilson63
 
Pros & cons of svelte
ElenorWisozk
 
Svelte as a Reactive Web Framework
University of Moratuwa, Katubedda, Sri Lanka
 
Getting started with Svelte Presentation
Knoldus Inc.
 
An introduction to Vue.js
Pagepro
 
Introduction to Flutter - truly crossplatform, amazingly fast
Bartosz Kosarzycki
 

What's hot (20)

PPTX
Introduction to Spring Boot
Purbarun Chakrabarti
 
PDF
React Router: React Meetup XXL
Rob Gietema
 
PDF
Introduction to Kotlin coroutines
Roman Elizarov
 
PDF
OOP and FP
Mario Fusco
 
PDF
Django Introduction & Tutorial
之宇 趙
 
PDF
VueJS Introduction
David Ličen
 
PDF
Docker multi-stage build
Alexei Ledenev
 
PDF
An Introduction of Node Package Manager (NPM)
iFour Technolab Pvt. Ltd.
 
PDF
Docker Birthday #3 - Intro to Docker Slides
Docker, Inc.
 
PDF
Flutter Tutorial For Beginners | Edureka
Edureka!
 
PDF
Web develop in flask
Jim Yeh
 
PPTX
[Final] ReactJS presentation
洪 鹏发
 
PDF
Asynchronous javascript
Eman Mohamed
 
PPTX
React Django Presentation
Allison DiNapoli
 
PPTX
Nodejs functions & modules
monikadeshmane
 
PDF
Let's make a contract: the art of designing a Java API
Mario Fusco
 
PDF
GitHub Actions with Node.js
Stefan Stölzle
 
PDF
The virtual DOM and how react uses it internally
Clóvis Neto
 
PDF
Introduction to ASP.NET Core
Avanade Nederland
 
PDF
Java 8-streams-collectors-patterns
José Paumard
 
Introduction to Spring Boot
Purbarun Chakrabarti
 
React Router: React Meetup XXL
Rob Gietema
 
Introduction to Kotlin coroutines
Roman Elizarov
 
OOP and FP
Mario Fusco
 
Django Introduction & Tutorial
之宇 趙
 
VueJS Introduction
David Ličen
 
Docker multi-stage build
Alexei Ledenev
 
An Introduction of Node Package Manager (NPM)
iFour Technolab Pvt. Ltd.
 
Docker Birthday #3 - Intro to Docker Slides
Docker, Inc.
 
Flutter Tutorial For Beginners | Edureka
Edureka!
 
Web develop in flask
Jim Yeh
 
[Final] ReactJS presentation
洪 鹏发
 
Asynchronous javascript
Eman Mohamed
 
React Django Presentation
Allison DiNapoli
 
Nodejs functions & modules
monikadeshmane
 
Let's make a contract: the art of designing a Java API
Mario Fusco
 
GitHub Actions with Node.js
Stefan Stölzle
 
The virtual DOM and how react uses it internally
Clóvis Neto
 
Introduction to ASP.NET Core
Avanade Nederland
 
Java 8-streams-collectors-patterns
José Paumard
 
Ad

Recently uploaded (20)

PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Software Development Methodologies in 2025
KodekX
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Ad

Svelte

  • 1. Presented by | Udith Indrakantha | SE Intern @ Geveo Australasia
  • 2.  Introduction  High level Comparison with A, R, V  History of Svelte  What is Svelte?  Features of Svelte  Lifecycle Hooks  Store with a Demo  Drawbacks of Svelte  Demo  Conclusion
  • 4. A High-Level Comparison with Other Frameworks >> Repos of the projects Performance 93 80 94 91 No. of Lines 2146 2050 2076 1116 Size 149.3KB 193KB 41.8KB 9.7KB >> For other frameworks
  • 5. 29 Nov 2016 19 April 2018 21 April 2019. Rich Harris
  • 8.  Less Code  No Virtual DOM  Truly Reactive
  • 17. onMount(callback: () => void) The onMount function schedules a callback to run as soon as the component has been mounted to the D If the onMount callback returns a function, that function will be called when the component is destroyed.
  • 18. onDestroy(callback: () => void) The onDestroy function schedules a callback to run as soon as the component has been destroyed.
  • 19. The beforeUpdate function schedules work to happen immediately before the DOM has been updated. afterUpdate is used for running code once the DOM is in sync with your data. * Note that beforeUpdate will first run before the component has mounted
  • 20. import { tick } from ‘svelte’; await tick()  Unlike other functions, you can call it anytime.  Returns a promise that resolves as soon as any pending state changes have been applied to the DOM. >> The example