React and TypeScript

Generic component props

A type parameter connects collection items with callbacks without erasing their type.

Formal Syntax & Structure

react syntaxreact
function List<T>(props: Props<T>)

Working Example

Example Snippetreact
function List<T>(props: Props<T>)
React Reference