TypeScript
A more disciplined approach to JavaScript
Home
Arrays
Primitives
Objects
Functions
Props
Fetch
Props
This is the Props page.
How to declare props in Type script
First create a type or interface defining the poros
Type Syntax
type componentProps = {name:string, description:string}
State
Generics
Functions