Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

props tsx

type GreetProps = {
  name: string;
  isTrue: boolean;
  age: number;
  handleIncrement: () => void;
  myArray: {
    name: string;
    age: number;
    color: string;
  }[];
};
 
PREVIOUS NEXT
Tagged: #props #tsx
ADD COMMENT
Topic
Name
2+8 =