state to { age: 0 } in the constructor, we initialize the age state to 0. class Sample extends React.Component { constructor(props) { super( ...
確定! 回上一頁