Generic
This lesson introduces generic types.
We'll cover the following
Introduction
Generic allows for improved reusability by parameterizing a type with another one. A popular front-end framework named React can have an unlimited number of components. They all have properties that are unique to their components. It would be tedious to have to inherit a base class or alter the framework to accommodate all potentials possibilities. Hence, the properties of these React components use a generic.
Get hands-on with 1400+ tech skills courses.