a a a a B t s a B t s a B t s b t > b t > b t > b t > b t > b t > o o o l o l y s y s o o o l o l t e t e o o l y s o o l t e 仕様を満たすためにPropsが雪だるま式に増えていく type PageButtonsProps = { hogeButtonSubmit: boolean; fugaButtonSubmit: boolean; handleHogeButtonSubmit: boolean; handleFugaButtonSubmit: boolean; ...(disabled, state, ...) } あれ?これ俺普段からやってたわ Ž キセヅォLPとかでも意識できるか考えよう! いつの間にかキセヅォ依存ヨリヺになってしまう! Compositionで薄くする a a a a B t s a B t s a B t s b t > b t > b t > b t > b t > b t > i l i l i l <PageButtons hogeButton={( <button type="button" onClick={handleHogeButtonSubmit}> textA </button> )} fugaButton={( <button type="button" onClick={handleOK}> OK </button> )} /> children PropsでももちろんOK <PageButtons> <button type="button" onClick={handleHogeButtonSubmit}> textA </button> <button type="button" onClick={handleOK}> OK </button> </PageButtons>