I need to use generics in my react component, it seems like what I need can't be done with function components, so I want to use class components. What do I have to do to be able to describe the component inside a Component<P, S> render() function?
div { ... }
returns Unit, but the function requires return type ReactNode?, so my IDE is confused