環境情報 TypeScript: 3.2.2 React: 16.7.0 前提知識: デフォルトプロパティの定義 Class Componentにおけるデフォルトプロパティを定義する際は、下記の通りdefaultPropsフィールドを用意してあげます。 class SomeComponent extends React.Component<SomeProps, SomeState> { public static defaultProps: SomeProps = { prop1: "default" }; ... } サンプルコンポーネント 今回説明を行うに当たって下記のようなButtonコンポーネントを考えてみましょう。 ButtonコンポーネントはプロパティとしてonClick, color, typeを保持しています。 interface Props { onClick: (e: