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
73
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
420
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
80
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
150
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
75
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
83
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
96
LINE Group Bot by Zwiz.AI
linedevth
0
130
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
150
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
250
Other Decks in Technology
See All in Technology
AgentCoreとStrandsで社内d払いナレッジボットを作った話
motojimayu
1
1.1k
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
170
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
9.9k
Agent Skillsがハーネスの垣根を超える日
gotalab555
6
4.7k
株式会社ビザスク_AI__Engineering_Summit_Tokyo_2025_登壇資料.pdf
eikohashiba
1
130
Redshift認可、アップデートでどう変わった?
handy
1
110
Kiro を用いたペアプロのススメ
taikis
4
2k
Knowledge Work の AI Backend
kworkdev
PRO
0
310
コールドスタンバイ構成でCDは可能か
hiramax
0
120
意外と知らない状態遷移テストの世界
nihonbuson
PRO
1
300
ハッカソンから社内プロダクトへ AIエージェント ko☆shi 開発で学んだ4つの重要要素
leveragestech
0
320
20251218_AIを活用した開発生産性向上の全社的な取り組みの進め方について / How to proceed with company-wide initiatives to improve development productivity using AI
yayoi_dd
0
790
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
1
660
4 Signs Your Business is Dying
shpigford
187
22k
Navigating Weather and Climate Data
rabernat
0
56
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
67
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
97
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
83
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
94
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Ruling the World: When Life Gets Gamed
codingconduct
0
110
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