📚 Reference


📜 Chapter


JSX

React.ElementType


type ElementType<P = any, Tag extends keyof JSX.IntrinsicElements = keyof JSX.IntrinsicElements> = { [K in Tag]: P extends JSX.IntrinsicElements[K] ? K : never; }[Tag] | ComponentType<P>