-通过 / -执行
When we handle async requests in React, we need to pay attention if the component is already unmounted.
Please implement useIsMounted() for us to easily tell if the component is still not unmounted.
useIsMounted()
一边解释一边码字。
Try it out
Console