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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
LINE Developers Thailand
October 25, 2024
Technology
93
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
560
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
140
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
270
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
130
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
150
LINE Group Bot by Zwiz.AI
linedevth
0
190
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
210
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
320
Other Decks in Technology
See All in Technology
認知負荷をGemini で溶かす — GKE 基盤「Orbit」における AI エージェントの実践
sansantech
PRO
1
310
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
260
LanceDB入門
mocobeta
8
550
Goでデータパイプラインを作ろう
sansantech
PRO
1
470
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
810
グローバル基準のSREは、運用現場でどう機能したか:成熟度アセスメントの実践 / SRE NEXT 2026
sorawatanabe
0
260
関東Kaggler会発表資料
takoi
1
240
Genie Codeハンズオン基礎編
taka_aki
1
120
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
130
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
620
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
280
Site-Speed That Sticks
csswizardry
13
1.4k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
420
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
390
Facilitating Awesome Meetings
lara
57
7.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
620
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
490
Design in an AI World
tapps
1
280
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