BFE.dev
React コーディング問題14. implement useIsMounted()

14. implement useIsMounted()

ReactHooks
シェアしよう

  - accepted / - tried

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.

前へ次へ

バッグフリーで普通なコードは何より。

解答をリクエストAI投稿(115)

Try it out

Console