Remove children: PropTypes.func in withContentRect()
Closed this issue · 2 comments
jpolo commented
This prop typing is only valid for component. I use withContentRect() with a component (successfully) and the type of children is a regular react-fragment
dkrieger commented
I agree that children shouldn't need to be a function. currently doing {(arg) => <Child prop={arg} />}
to work around this, but I think there are more performant ways of rendering children dynamically at this point in react