全利用箇所へ伝わる On the Criteria To Be Used in Decomposing Systems into Modules(David L. Parnas、1972)情報隠蔽 Object-Oriented Software Construction 2nd ed.(Bertrand Meyer、1997)契約による設計 10/41
で描画する 通信と業務ルールが残る 変わる理由が違うものを分けておくと、 互いに独立して変更できる The Single Responsibility Principle (Robert C. Martin, 2014) https://blog.cleancoder.com/uncle-bob/2014/05/08/SingleReponsibilityPrinciple.html 24/41
const context = useContext(TabsContext) if (!context) { throw new Error('useTabsContext must be used within a TabsProvider') } return context } TypeScript 37/41