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
90
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
520
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
130
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
250
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
120
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
120
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
140
LINE Group Bot by Zwiz.AI
linedevth
0
180
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
200
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
310
Other Decks in Technology
See All in Technology
AIは、人間らしい仕事の夢を見るか?─ AI時代のtoB/toEプロダクトを再設計する
techtekt
PRO
0
160
AI時代のコスト管理を考えよう〜明日から使える実践AWSノウハウ~
yoshimi0227
0
930
AIエージェントとPhysical AIが拓く製造業の変革(ハノーバーメッセリキャップ)
iotcomjpadmin
0
160
初めてのDatabricks勉強会
taka_aki
2
180
コミュニティの有益性 ~JAWS Days 2026 での体験を通して~ / The Benefits of a Community ~Through My Experience at JAWS Days 2026~
seike460
PRO
0
300
コミットの「なぜ」を読む
ota1022
0
120
BPaaSで進むAIオペレーションの現在地 AI実装が効く領域とスケーラビリティの選定と実装
kentarofujii
0
210
攻撃者がいなくてもAIエージェントはインシデントを起こす
nomizone
0
120
AIチャットの改善から見えた、良いAI体験とは / What Constitutes a Good AI Experience: Insights from Improving AI Chat
kubode
0
120
「勝手に広まる」人気 AI エージェントを爆速で作ろう!(AWS Summit Japan 2026講演資料)
minorun365
PRO
10
2.6k
千葉での単身赴任からAWSをやり続け、千葉に戻ってきた話
yama3133
1
120
現場のトークンマネジメント
dak2
1
200
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
400
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
210
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Speed Design
sergeychernyshev
33
1.9k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
290
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
640
Game over? The fight for quality and originality in the time of robots
wayneb77
1
210
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
250
Building AI with AI
inesmontani
PRO
1
1.1k
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