admin管理员组

文章数量:1201025

I was looking into the 'componentWillUnmount' method in this page .asp?filename=demo2_react_lifecycle_componentwillunmount

The issue which I noticed is that componentWillUnmount lifecycle method of child component getting triggered even after the component got unmounted. If I click on the button for a second time, the child component's lifecycle method getting triggered. but I am not sure how! Is it the correct behavior?

本文标签: reactjscomponentWillUnmount getting triggered from a component which is already unmountedStack Overflow