Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
フロントエンドの設計で大事なこと
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Daichi Sunagawa
November 16, 2023
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
フロントエンドの設計で大事なこと
Daichi Sunagawa
November 16, 2023
More Decks by Daichi Sunagawa
See All by Daichi Sunagawa
10分でわかるNext.js14
sngw0113
0
130
React と Next.js について
sngw0113
0
58
フロント開発でよく使われるライブラリの紹介
sngw0113
0
38
モダンJavaScript入門
sngw0113
0
41
【React入門】絶対に躓かない Reactワークショップ #3
sngw0113
0
26
【React入門】絶対に躓かない Reactワークショップ #2
sngw0113
0
43
【React入門】絶対に躓かない Reactワークショップ #1.pdf
sngw0113
0
160
Other Decks in Programming
See All in Programming
contenteditable と日本語入力に向き合う
colorful12
0
200
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
Performance Optimization With LLMs
xleitix
0
140
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
300
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
690
JIS keyboard support in Omarchy
lef237
0
130
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
Agents on Rails - Rails at Scale 2026
irinanazarova
0
570
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
Discover your Explorer Soul
emna__ayadi
2
1.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
290
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Deep Space Network (abreviated)
tonyrice
0
370
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Transcript
砂川 大地 フロントエンドの 設計で大事なこと フロント勉強会
D S 設計にあたって重要な考え方1 関心の分離 UIとビジネスロジック 「商品一覧」と「商品を取得する処理」 Amazun
D S 設計にあたって重要な考え方1 関心の分離 UIとビジネスロジック 「商品一覧」と「商品を取得する処理」 Amazun
D S 設計にあたって重要な考え方1 関心の分離 UIとビジネスロジック 「商品一覧」と「商品を取得する処理」 Amazun 見た目と振る舞い 「ユーザーアイコン」と「メニュー表示」
D S 設計にあたって重要な考え方1 関心の分離 UIとビジネスロジック 「商品一覧」と「商品を取得する処理」 Amazun 見た目と振る舞い 「ユーザーアイコン」と「メニュー表示」
UIとビジネスロジックの分離 Before After 商品一覧の例 DS Amazun
見た目と振る舞いの分離 Before After アカウントメニューの例 D S プロフィール変更 メールアドレス変更 ログアウト
設計にあたって重要な考え方2 依存の方向性 関心を分離したとはいえ、どこかでそれらを接続する必要がある 依存関係をシンプルに保つ必要がある
設計にあたって重要な考え方2 依存の方向性 関心を分離したとはいえ、どこかでそれらを接続する必要がある 依存関係をシンプルに保つ必要がある レイヤードアーキテクチャ
アトミックデザイン
アトミックデザイン Molecules は Atoms に依存してもよいが、Organisms には依存しない
設計にあたって重要な考え方2 悪い例 `AccountMenu`コンポーネントに合わせて、 `handleMenuOpen`というpropsを用意する D S
Container/Presentationalパターン Container データがユーザーにどのように表示されるかを管 理するコンポーネント。 Presentational 何のデータがユーザーに表示されるかを管理する コンポーネント。
Container/Presentational パターン 「犬のデータ」を「ギャラリーで表示する」
Container/Presentational パターン Container層 Presentational層 バックエンド Container層だけがバックエンドに依存する 例)PagesコンポーネントをContainer層とし、 データの取得はPagesコンポーネントでのみ行う
他にも気になる方はこちらがおすすめです