📅  最后修改于: 2022-03-11 15:03:21.949000             🧑  作者: Mango
Assert the variable as a React.ElementType
Example:
const Component = (isFoo ? FooComponent : BarComponent) as React.ElementType