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) => {_x000D_
const list:string[] = [_x000D_
' Consequat Phasellus sollicitudin.',_x000D_
' Consequat Phasellus sollicitudin.',_x000D_
'...'_x000D_
]_x000D_
_x000D_
return (_x000D_
<List_x000D_
header={<ListHeader heading="Properties List" />}_x000D_
dataSource={list}_x000D_
renderItem={(listItem, index) =>_x000D_
<List.Item key={index}> {listItem } </List.Item>_x000D_
}_x000D_
/>_x000D_
)_x000D_
}
_x000D_