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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
LINE Developers Thailand
October 25, 2024
Technology
0
74
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
450
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
87
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
190
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
88
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
86
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
110
LINE Group Bot by Zwiz.AI
linedevth
0
150
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
170
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
270
Other Decks in Technology
See All in Technology
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
480
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
160
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
What happened to RubyGems and what can we learn?
mikemcquaid
0
310
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
120
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
180
[CV勉強会@関東 World Model 読み会] Orbis: Overcoming Challenges of Long-Horizon Prediction in Driving World Models (Mousakhan+, NeurIPS 2025)
abemii
0
140
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.8k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
830
今日から始めるAmazon Bedrock AgentCore
har1101
4
420
Agile Leadership Summit Keynote 2026
m_seki
1
650
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Technical Leadership for Architectural Decision Making
baasie
2
250
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
100
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
How to Talk to Developers About Accessibility
jct
2
130
The Pragmatic Product Professional
lauravandoore
37
7.1k
For a Future-Friendly Web
brad_frost
182
10k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
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