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
Decoupling UI components for better reusability...
Search
LINE Developers Thailand
October 25, 2024
Technology
0
50
Decoupling UI components for better reusability and test with Storybook
Decoupling UI components for better reusability and test with Storybook
LINE Developers Thailand
October 25, 2024
Tweet
Share
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
LINE API Deep Dive Q1 2025: Unlocking New Possibilities
linedevth
1
180
Welcome & Tech Vision Keynote
linedevth
0
160
Building the Future: LINE API Updates in 2024
linedevth
1
150
Revolutionizing Telepharmacy with The POWER of Gen AI and LINE API
linedevth
0
170
Seamless Inventory Management with ChatGPT and LINE SHOPPING API
linedevth
0
110
The Future of LINE Retail Chatbot using Gemini AI
linedevth
0
250
Domain Data Platform for Scalable Data Management
linedevth
0
96
Building a Fortune Teller App with OpenAI From Chatbot to Voice Assistant
linedevth
0
84
B.A.A.S - BeTask AI and Automation for SMEs
linedevth
0
74
Other Decks in Technology
See All in Technology
Azure × MCP 入門
ry0y4n
8
1.6k
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
1
240
Cursorをチョッパヤインタビューライターにチューニングする方法 / how to tuning cursor for interview write
shuzon
2
150
3D生成AIのための画像生成
kosukeito
2
620
AI駆動で進化する開発プロセス ~クラスメソッドでの実践と成功事例~ / aidd-in-classmethod
tomoki10
1
1.1k
正式リリースされた Semantic Kernel の Agent Framework 全部紹介!
okazuki
1
1.1k
kernelvm-brain-net
raspython3
0
520
MySQL InnoDB Data Recovery - The Last Resort
lefred
0
110
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2025年版)
infiniteloop_inc
4
15k
テストって楽しい!開発を加速させるテストの魅力 / Testing is Fun! The Fascinating of Testing to Accelerate Development
aiandrox
0
170
AIとSREで「今」できること
honmarkhunt
3
720
Part1 GitHubってなんだろう?その2
tomokusaba
2
730
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
Visualization
eitanlees
146
16k
Documentation Writing (for coders)
carmenintech
71
4.8k
Being A Developer After 40
akosma
91
590k
Typedesign – Prime Four
hannesfritz
41
2.6k
Unsuck your backbone
ammeep
671
58k
Into the Great Unknown - MozCon
thekraken
38
1.8k
YesSQL, Process and Tooling at Scale
rocio
172
14k
GitHub's CSS Performance
jonrohan
1031
460k
Producing Creativity
orderedlist
PRO
344
40k
Bash Introduction
62gerente
613
210k
Transcript
Decoupling UI components for better reusability and test with Storybook
Frontend world
UI Frameworks
TEST
• Component segmentation for reusability • Problems we encounter when
implementing a new component • The solution that we test a new component by storybook Agenda
• Action by click or typing • Integrate API •
Integrate stores What do we do on the page
• Handle action event • Call API • Manage data
from API • Re-render view when data changed Spaghetti man Button Button Button Contents Button
Component segmentation for reusability
Input Type 1 Input Type 2 Input Type 3
None
Panel for 5 Button and Content Button Button Contents Label
Button Button Button • Render component • Action by clicked button Focus • Integrate with API • Mutate data Out of scope
Overview Button Button Contents Panel 1 Button Button Button Panel
3 Button Button Button Panel 2 Button Button Button Button Button Contents Panel 4 Button Button Button Container Container • Listen event from each panel to handle action • Action to call API • Action to stores
Problems we encounter when implementing a new component
Test and review
How do we test > Unit test in each component
> Automation test
Issues we often encounter during reviews
A lot of files changed
None
None
The solution that we test a new component by storybook
None
Storybook
None
Reviewer Create PR
Key takeaways > Making components easily reusable > Storybook helps
reduce the time spent on testing and reviewing > Let’s have fun with the storybook
None