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
UIの情報構造に合わせたReact Componentを作る UI Structureパターン
Search
Tomohito Yamanaka
October 27, 2023
0
57
UIの情報構造に合わせたReact Componentを作る UI Structureパターン
Tomohito Yamanaka
October 27, 2023
Tweet
Share
More Decks by Tomohito Yamanaka
See All by Tomohito Yamanaka
生産性を上げる考え方
intomyam
0
150
create unreadable_code unless carelessness !always
intomyam
1
680
Wantedly Visit's Account Table Design
intomyam
0
520
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
99
18k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Adopting Sorbet at Scale
ufuk
74
9.2k
A designer walks into a library…
pauljervisheath
205
24k
A Tale of Four Properties
chriscoyier
158
23k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
630
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Rails Girls Zürich Keynote
gr2m
94
13k
Transcript
6*ͷใߏʹ߹Θͤͨ3$Λ࡞Δ 6*4USVDUVSFύλʔϯ Oct 26, 2023 - Tomohito Yamanaka
5PNPIJUP:BNBOBLB 1SFTFOUFS @intomyam @intomyam
6*4USVDUVSFύλʔϯ ྫ"SUJDMF ྫ"SUJDMFT
UI Structure ύλʔϯ
UI Structure ύλʔϯ $PNQPOFOU ʮ6*ཁૉΛදݱͨ͠ͷʯ
UI Structure ύλʔϯ 1. DataΛදݱ͢Δ 2. DataΛૢ࡞͢Δ 3. Ϣʔβૢ࡞ʹΑͬͯঢ়ଶΛม͑Δ Componentͷ
1. ͨͩͻͱͭͷData 2. DataΛૢ࡞͢Δhandler (onCreate, onUpdate, onDelete) 3. ঢ়ଶมԽʹͱͳ͏handler (onActive, onOpen, onClose) Componentͷpropsͷछྨ
ྫ: Article
ྫ: Article ͜ͷComponentͷ࣮Λߟ͑Δ
ྫ: Article ߏతʹ͜͏
ྫ: Article Component໊ͱData໊Ұகͤ͞Δ
ྫ: Article SupplementʹϒοΫϚʔΫϘλϯ͕͋Δ → article.id͕ඞཁ
ྫ: Article Supplementʹͣ͞ ContextΛ͏
ྫ: Articles
ྫ: Articles ͜ͷComponentͷ࣮Λߟ͑Δ
ྫ: Articles
ྫ: Articles Article͕ArticleͷฤूػೳΛ࣋ͬͨΒʁ
ྫ: Articles
ྫ: Articles onUpdateΛΧϦʔԽͯ͠ɺ ࢠComponentͷonUpdateʹ͢
σΟϨΫτϦߏͱ1SPQT͕ γϯϓϧͰݟ௨͕͠ྑ͘ͳΔ