React框架解釋及組件間通訊

生命週期hooks lifecycle hooks 組件生命週期: 三個 狀態 Mounting Updating Unmouting 把GetInitialState 換成 constructor Mounting:當一個組件的實例被建立和插入的DOM的時候被調用 constructor() //componentWillMount() render() componentDidMount()前
相關文章
相關標籤/搜索