For those use cases, use componentDidMount() instead. Note. Avoid copying props into state! This is a common mistake: constructor(props) ...
確定! 回上一頁