Typescript Flashcards

1
Q

How to declare a component that receives a set of parameters via props?

A

type MyProps: {
value: number = 0;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly