You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export class Test extends React.PureComponent<void, void> {
render() {
return this.props.children;
}
}
but this doesn't work:
export const Test:React.FC<void> = p => {
return p.children;
};
seems like the functional component should allow bare return of children just as the class component does. Perhaps a mismatch between the ReactNode and ReactElement types?
richsilv, mgmolisani, jddxf, BitPhinix, lwolle and 36 more