TypeScript

A more disciplined approach to JavaScript

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