Typescript Flashcards
1
Q
How to declare a component that receives a set of parameters via props?
A
type MyProps: {
value: number = 0;
}
React > Typescript > Flashcards
How to declare a component that receives a set of parameters via props?
type MyProps: {
value: number = 0;
}