'Cannot find name "T" Typescript

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 ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source