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
84
0
Share
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
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
490
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
120
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
230
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
100
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
110
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
130
LINE Group Bot by Zwiz.AI
linedevth
0
170
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
190
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
300
Other Decks in Technology
See All in Technology
2026年春のAgentCoreアプデ 細かいやつ全部まとめ
minorun365
3
200
Microsoft 365 / Microsoft 365 Copilot : 自分の状態を確認する「ラベル」について
taichinakamura
0
460
大学職員のための生成AI最前線 :最前線を、AIガバナンスとして読み直すためのTips
gmoriki
2
3.6k
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
900
ブラウザの投機的読み込みと投機ルールAPIを理解し、Webサービスのパフォーマンスを最適化する
shuta13
3
280
Agent の「自由」と「安全」〜未来に向けて今できること〜
katayan
0
340
色を視る
yuzneri
0
320
Digital Independence: Why, When and How
wannesrams
0
290
Agent Skillsで実現する記憶領域の運用とその後
yamadashy
2
1.1k
Scovilleモバイルエンジニア募集中.pdf
julienrudin
0
150
Fabric MCPの紹介と使い分け
ryomaru0825
1
130
[Scram Fest Niigata2026]Quality as Code〜AIにQAの思考を再現させる試み〜
masamiyajiri
1
250
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
WENDY [Excerpt]
tessaabrams
10
37k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
180
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
220
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
What's in a price? How to price your products and services
michaelherold
247
13k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
490
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