I\'m trying to type a property of a React component using generics. The problem is when I try to render the component as a render prop through another component, it seems to no