# react-umi2 **Repository Path**: hflower/react-umi2 ## Basic Information - **Project Name**: react-umi2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-26 - **Last Updated**: 2021-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### ErrorBoundary父组件监测子组件发生的错误,并不能监测本身发生的错误 ### 自身的错误或者是setTimeout中发生的错误,就需要使用createPortal来进行处理 ### ref api能够操作DOM节点和 子组件 ### useEffect相当于class 组件内的componentDidMount和componentWillMount > useEffect 可以执行异步函数,但是不支持async await ### useLayoutEffect DOM加载完毕执行