2024-02-14 【React】stringもコンポーネントを受け取りたい時の型はReact.ReactNode 以下のようなユニオン型なので、 型を細かく絞りたくない時に使える。 type ReactNode = ReactChild | ReactFragment | ReactPortal | boolean | null | undefined;