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;
}