Closed Rafatcb closed 3 years ago
Using any remove the type checking, so now it is possible to specify a generic type to have props type checking in the same way React.ComponentType does, while it still accepts an any type as generic.
any
React.ComponentType
Using
any
remove the type checking, so now it is possible to specify a generic type to have props type checking in the same wayReact.ComponentType
does, while it still accepts anany
type as generic.Old behavior
Current behavior
Default behavior
Using
any
as beforeSetting prop types