Using v5 with latest type definitions: There are no special annotations for children so the args passed to the child function are of any type.
Binding element 'width' implicitly has an 'any' type.
With a union type definition for valid props.children you could write an annotation for the argument passed to the child function of ReactResizeDetector.
Seems like a nice feature to have considering this is one of the recommended patterns! Let me know if you'd like me to help with this.
Using v5 with latest type definitions: There are no special annotations for children so the args passed to the child function are of
any
type.Binding element 'width' implicitly has an 'any' type.
With a union type definition for valid
props.children
you could write an annotation for the argument passed to the child function ofReactResizeDetector
.Seems like a nice feature to have considering this is one of the recommended patterns! Let me know if you'd like me to help with this.