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
65
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
45
Slide DevCoach
shabillarestu
0
47
Slide DevCoach
shabillarestu
0
26
Slide DevCoach
shabillarestu
0
16
Slide DevCoach
shabillarestu
0
27
Slide DevCoach
shabillarestu
0
25
Slide DevCoach
shabillarestu
0
15
Slide DevCoach
shabillarestu
0
27
Slide DevCoach
shabillarestu
0
23
Other Decks in Programming
See All in Programming
統一感のある Go コードを生成 AI の力で手にいれる
otakakot
0
3k
無関心の谷
kanayannet
0
180
C++20 射影変換
faithandbrave
0
500
Elixir で IoT 開発、 Nerves なら簡単にできる!?
pojiro
1
150
地方に住むエンジニアの残酷な現実とキャリア論
ichimichi
3
650
Benchmark
sysong
0
230
つよそうにふるまい、つよい成果を出すのなら、つよいのかもしれない
irof
1
300
エラーって何種類あるの?
kajitack
5
280
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
300
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
250
XSLTで作るBrainfuck処理系
makki_d
0
210
GraphRAGの仕組みまるわかり
tosuri13
7
460
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
How to train your dragon (web standard)
notwaldorf
92
6.1k
Visualization
eitanlees
146
16k
Fireside Chat
paigeccino
37
3.5k
What's in a price? How to price your products and services
michaelherold
245
12k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Why Our Code Smells
bkeepers
PRO
337
57k
Code Review Best Practice
trishagee
68
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