Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Slide DevCoach
Search
shabilla
April 08, 2024
Programming
0
70
Slide DevCoach
DevCoach 145 : Front-End | Bikin Web Component Lebih Gampang Pakai Lit
shabilla
April 08, 2024
Tweet
Share
More Decks by shabilla
See All by shabilla
Slide DevCoach #151
shabillarestu
0
56
Slide DevCoach
shabillarestu
0
58
Slide DevCoach
shabillarestu
0
30
Slide DevCoach
shabillarestu
0
26
Slide DevCoach
shabillarestu
0
32
Slide DevCoach
shabillarestu
0
31
Slide DevCoach
shabillarestu
0
18
Slide DevCoach
shabillarestu
0
32
Slide DevCoach
shabillarestu
0
28
Other Decks in Programming
See All in Programming
CSC307 Lecture 09
javiergs
PRO
1
840
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
210
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
610
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
730
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
CSC307 Lecture 04
javiergs
PRO
0
660
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
4k
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
高速開発のためのコード整理術
sutetotanuki
1
410
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
The Spectacular Lies of Maps
axbom
PRO
1
530
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
67
Measuring & Analyzing Core Web Vitals
bluesmoon
9
760
Thoughts on Productivity
jonyablonski
74
5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
The Curse of the Amulet
leimatthew05
1
8.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Faster Mobile Websites
deanohume
310
31k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
79
A better future with KSS
kneath
240
18k
Transcript
Position Bikin Web Component Lebih Gampang Pakai Lit Front-End Web
Nur Rizki Adi Curriculum Developer
Learning Objectives Front-End Web • Ada apa dengan Lit •
Lit vs. Native Web Component • Apa itu reactive property • Gaya baru terapkan style dan event • Cara pasang Lit di Proyek
Masih ingat dengan Web Components?
Sport Club Finder App
<search-bar> <club-list> <footer-app> <app-bar>
Framework yang Mengadopsi Component Architecture Front-End Web
• Simple. Building on top of the Web Components standards.
• Fast. Updates are fast. • Lightweight. Weighing in at around 5 KB (minified and compressed). Front-End Web Why should I choose Lit? - lit.dev Lit, Web Component Library
Tiga Teknologi Web Component • Custom Element • Shadow DOM
• HTML Template Front-End Web
Fitur Lainnya dari Lit • Menggunakan class LitElement • Memanfaatkan
JavaScript tagged template literal • Reactive properties • Scoped for styles • Didukung baik dengan TypeScript Front-End Web
Membutuhkan Module Bundler Webpack Vite Parcel Browserify
Cara Bikin Element dengan Lit Front-End Web Defining a component
- MDN
Styling for Lit Component Styles - lit.dev
Event Listener looks like familiar in JS framework… Styles -
lit.dev
Reactive Property Change Everything
Mekanisme Sederhana Perubahan Nilai Reactive Property
Mekanisme Sederhana Perubahan Nilai Reactive Property
Mekanisme Sederhana Perubahan Nilai Reactive Property
Mekanisme Sederhana Perubahan Nilai Reactive Property Reactive update cycle -
lit.dev
Let’s get dirty our hands
Full Support Lit dengan TypeScript Front-End Web
Thank You nurrizkiadip Nur Rizki Adi Prasetyo @NAdiPrasetyo
[email protected]
Nur
Rizki Adi Prasetyo Nur Rizki Adi Prasetyo Front-End Web
Feedback! Hadiah: • 2 Token Langganan Academy (30 Hari) *untuk
pengisi feedback terpilih! dicoding.id/devcoachfeedback
Front-end Web