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
80
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
480
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
100
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
220
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
99
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
98
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
120
LINE Group Bot by Zwiz.AI
linedevth
0
160
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
180
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
290
Other Decks in Technology
See All in Technology
Phase09_自動化_仕組み化
overflowinc
0
1.8k
事例から紐解くSHIFT流QA支援 ~大規模プロジェクトの品質管理支援、QA組織立ち上げ~ / 20260320 Nozomu Koketsu
shift_evolve
PRO
0
140
AIエージェント勉強会第3回 エージェンティックAIの時代がやってきた
ymiya55
0
130
FastMCP OAuth Proxy with Cognito
hironobuiga
3
210
QA組織のAI戦略とAIテスト設計システムAITASの実践
sansantech
PRO
1
160
20260320_JaSST26_Tokyo_登壇資料.pdf
mura_shin
0
130
DMBOKを使ってレバレジーズのデータマネジメントを評価した
leveragestech
0
270
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
qa
0
320
VSCode中心だった自分がターミナル沼に入門した話
sanogemaru
0
730
Kiro Meetup #7 Kiro アップデート (2025/12/15〜2026/3/20)
katzueno
2
250
CloudFrontのHost Header転送設定でパケットの中身はどう変わるのか?
nagisa53
1
190
Amazon Qはアマコネで頑張っています〜 Amazon Q in Connectについて〜
yama3133
1
130
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
500
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Utilizing Notion as your number one productivity tool
mfonobong
4
270
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Everyday Curiosity
cassininazir
0
180
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.2k
The Spectacular Lies of Maps
axbom
PRO
1
650
Joys of Absence: A Defence of Solitary Play
codingconduct
1
320
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
780
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