When to use JSX.Element vs ReactNode vs ReactElement?如何在ts中选择jsx.element和ReatNode类型
AReactElementisanobjectwithatypeandprops.interfaceReactElement=string|JSXElementConstructor>{type:T;props:P;key:Key|null;}AReactNodeisaReactElement,aReactFragment,astring,anumberoranarrayofReactNodes,