A React Hook that returns a Ref Getter that indicates whether the component is mounted or not.
Try to click Start Timer, and then click the "Toggle mount" button in one second to see the result.
See API for more details.
Click links below to view source on GitHub.
isMounted is a Ref Getter that returns a boolean value.
See Ref Getter for more details.
A Ref Getter that return a boolean value that indicates whether the component is mounted or not.