<分区>
我是 React js 的新手。我正在做一个项目,发现了这一行
const { var1, var2 } = this.props;
这个组件中的 Prop 是
type PropsType = {
var1: Array<any>,
a: Array<any>,
b: boolean,
c: boolean,
var2: (string) => void,
d: () => void,
e: () => void
};
我很困惑。这是什么意思?