@livelybone/use-mounted

React hook for mounted and unmount, return an object: MutableRefObject<{ mounted: boolean, unmounted: boolean }>

Browse on unpkg