
- Provides static type checking and get to learn about potential bugs as one is typing the code without the need to detect the bugs at runtime.

Advanced Props Union of string literals Children props Children as react component node Optional type

Event props Mouse event Change event

React Hooks props useState useReducer useContext useContext future value useRef

Component props

Generic props

Restricting props

Using tempalte literals to create many strings by making use of unions.

Create custom components by adding typesUse omit keyword to take type and remove the specified properties.

Reuse the types from an existing component

Use polymorphic components to build a design system or component library