New to Typescript and React, I'm getting a lint error
Type '({ Token }: { Token: string; }) => JSX.Element' is not assignable to type 'ReactNode'..
{ClientComponent}
const ClientComponent = ({Token}: {Token: string}) => {
return (
<div>
{Token ? <div>Customer exists</div> : null}
</div>
)
}
What is the best way to fix this error? Thank you
{ClientComponent}what is that? Please show where and how you use this component.