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
91
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Slide DevCoach
DevCoach 145 : Front-End | Bikin Web Component Lebih Gampang Pakai Lit
shabilla
April 08, 2024
More Decks by shabilla
See All by shabilla
Slide DevCoach #151
shabillarestu
0
72
Slide DevCoach
shabillarestu
0
78
Slide DevCoach
shabillarestu
0
46
Slide DevCoach
shabillarestu
0
53
Slide DevCoach
shabillarestu
0
56
Slide DevCoach
shabillarestu
0
56
Slide DevCoach
shabillarestu
0
42
Slide DevCoach
shabillarestu
0
56
Slide DevCoach
shabillarestu
0
51
Other Decks in Programming
See All in Programming
メールのエイリアス機能を履き違えない
isshinfunada
0
250
Building a Meta Ray-Ban display app
akkeylab
0
170
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
120
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
150
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
350
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
200
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
1
220
VibeCodingからAgenticWorkflowへ
starfish719
0
710
不幸な GC
chencmd
0
310
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
160
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
170
リアルな遅延を測る仕様
kota_yata
1
120
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
460
Claude Code のすすめ
schroneko
67
230k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
970
Joys of Absence: A Defence of Solitary Play
codingconduct
1
440
Code Reviewing Like a Champion
maltzj
528
40k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
220
How STYLIGHT went responsive
nonsquared
100
6.2k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
340
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
260
Scaling GitHub
holman
464
140k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
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