Skip to main content
dev-knowledge
ナレッジ
GitHub
4 docs tagged with "composition"
View all tags
Context を使う前に検討すること(コンポジション優先)
TL;DR
Rustで複数のstructに共通するフィールドを共有する — 合成+アクセサtrait、Derefで継承を模倣しない
TL;DR
フック出力の素通し props を getInputProps() で束ねる
TL;DR
消費者が 1 つなら Context 化は不要 — Provider 化の判断基準
TL;DR