I kindly I need help rectifying this typeScript error:
Type '() => boolean' is not assignable to type 'ReactNode'.ts(2322)
Below is a sample of my code:
export const Palindrome:React.FC<{}> = () => {
const results = ():boolean => {
const int = 121;
return String(int) === String(int).split('').reverse().join();
};
return (
<div>
{results}
</div>
)
}