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