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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
LINE Developers Thailand
October 25, 2024
Technology
81
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
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
100
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
99
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
トイルを超えたCREは何屋になるのか
bengo4com
0
110
Even G2 クイックスタートガイド(日本語版)
vrshinobi1
0
160
出版記念イベントin大阪「書籍紹介&私がよく使うMCPサーバー3選と社内で安全に活用する方法」
kintotechdev
0
120
20260326_AIDD事例紹介_ULSC.pdf
findy_eventslides
0
240
遊びで始めたNew Relic MCP、気づいたらChatOpsなオブザーバビリティボットができてました/From New Relic MCP to a ChatOps Observability Bot
aeonpeople
1
130
AI時代のシステム開発者の仕事_20260328
sengtor
0
320
TUNA Camp 2026 京都Stage ヒューリスティックアルゴリズム入門
terryu16
0
640
CloudFrontのHost Header転送設定でパケットの中身はどう変わるのか?
nagisa53
1
230
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
11k
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
460
Bref でサービスを運用している話
sgash708
0
210
Zephyr(RTOS)でARMとRISC-Vのコア間通信をしてみた
iotengineer22
0
110
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
92
Code Reviewing Like a Champion
maltzj
528
40k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
330
Claude Code のすすめ
schroneko
67
220k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
97
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