cribbble
avatar

Ward Poel

JavaScript Developer @ Wheelhouse | Co-Founder @ Scribbble.io

React Hooks: useMountedState

May 13, 2021

A React Hook with a failsafe setState method. If you're trying to setState in an unmounted component