I wrote some code:
function renderGreeting(Elem: React.Component) {
return Hello, !;
}
In my case, I was using React.ReactNode
as a type for a functional component instead of React.FC
type.
In this component to be exact:
export const PropertiesList: React.FC = (props: any) => {
const list:string[] = [
' Consequat Phasellus sollicitudin.',
' Consequat Phasellus sollicitudin.',
'...'
]
return (
}
dataSource={list}
renderItem={(listItem, index) =>
{listItem }
}
/>
)
}