Why I get this error message:
Cannot find name "T"
Code:
const List: React.FC<T> = ({ items, render }: { items: T[]; render: (item: T) => React.ReactNode;}) => { return (<View> { items.map((el ,i) => (<Text key={i}>{el}</Text> )) }</View> )}
What I am doing wrong ?