📅  最后修改于: 2022-03-11 15:03:20.127000             🧑  作者: Mango
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {/* initial state */}
}
}