$30 off During Our Annual Pro Sale. View Details »
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
71
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
Unlocking the Power of AI Agents with LINE Bot MCP Server
linedevth
0
420
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
76
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
140
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
71
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
79
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
90
LINE Group Bot by Zwiz.AI
linedevth
0
130
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
140
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
240
Other Decks in Technology
See All in Technology
Ruby で作る大規模イベントネットワーク構築・運用支援システム TTDB
taketo1113
1
220
打 造 A I 驅 動 的 G i t H u b ⾃ 動 化 ⼯ 作 流 程
appleboy
0
140
20251209_WAKECareer_生成AIを活用した設計・開発プロセス
syobochim
5
1.4k
Lambdaの常識はどう変わる?!re:Invent 2025 before after
iwatatomoya
1
380
AI活用によるPRレビュー改善の歩み ― 社内全体に広がる学びと実践
lycorptech_jp
PRO
1
190
AWS CLIの新しい認証情報設定方法aws loginコマンドの実態
wkm2
6
640
SSO方式とJumpアカウント方式の比較と設計方針
yuobayashi
7
520
pmconf2025 - 他社事例を"自社仕様化"する技術_iRAFT法
daichi_yamashita
0
790
手動から自動へ、そしてその先へ
moritamasami
0
290
【AWS re:Invent 2025速報】AIビルダー向けアップデートをまとめて解説!
minorun365
4
480
意外とあった SQL Server 関連アップデート + Database Savings Plans
stknohg
PRO
0
300
エンジニアリングをやめたくないので問い続ける
estie
0
310
Featured
See All Featured
Making Projects Easy
brettharned
120
6.5k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Scaling GitHub
holman
464
140k
Facilitating Awesome Meetings
lara
57
6.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.8k
A Tale of Four Properties
chriscoyier
162
23k
Music & Morning Musume
bryan
46
7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Cult of Friendly URLs
andyhume
79
6.7k
Optimizing for Happiness
mojombo
379
70k
Agile that works and the tools we love
rasmusluckow
331
21k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
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