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
43
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
Welcome & Tech Vision Keynote
linedevth
0
140
Building the Future: LINE API Updates in 2024
linedevth
0
130
Revolutionizing Telepharmacy with The POWER of Gen AI and LINE API
linedevth
0
150
Seamless Inventory Management with ChatGPT and LINE SHOPPING API
linedevth
0
99
The Future of LINE Retail Chatbot using Gemini AI
linedevth
0
220
Domain Data Platform for Scalable Data Management
linedevth
0
76
Building a Fortune Teller App with OpenAI From Chatbot to Voice Assistant
linedevth
0
70
B.A.A.S - BeTask AI and Automation for SMEs
linedevth
0
65
Boosting Development Quality through Continuous Documentation Integration
linedevth
0
90
Other Decks in Technology
See All in Technology
株式会社EventHub・エンジニア採用資料
eventhub
0
4.3k
自動テストの世界に、この5年間で起きたこと
autifyhq
10
8.5k
Moved to https://speakerdeck.com/toshihue/presales-engineer-career-bridging-tech-biz-ja
toshihue
2
740
ビジネスモデリング道場 目的と背景
masuda220
PRO
9
520
次世代KYC活動報告 / 20250219-BizDay17-KYC-nextgen
oidfj
0
250
分解して理解する Aspire
nenonaninu
1
120
MC906491 を見据えた Microsoft Entra Connect アップグレード対応
tamaiyutaro
1
540
バックエンドエンジニアのためのフロントエンド入門 #devsumiC
panda_program
18
7.5k
AndroidデバイスにFTPサーバを建立する
e10dokup
0
250
Developers Summit 2025 浅野卓也(13-B-7 LegalOn Technologies)
legalontechnologies
PRO
0
710
アジャイル開発とスクラム
araihara
0
170
人はなぜISUCONに夢中になるのか
kakehashi
PRO
6
1.6k
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
A better future with KSS
kneath
238
17k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Into the Great Unknown - MozCon
thekraken
35
1.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
100
18k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
We Have a Design System, Now What?
morganepeng
51
7.4k
The Invisible Side of Design
smashingmag
299
50k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
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