typescript class component arrow function code example
Example 1: generic arrow function typescript
const foo = <T extends unknown>(x: T) => x;
Example 2: arrow function in typescript
//prototype
const/let <FunctionName> = (params: type) :<ReturnType> =>{
....
};
const PrintName = (name: string): string => {
return console.log("my name is " , name) ;
}