useSafeTimeout

useSafeTimeout is a utility Hook that allows you to safely call setTimeout and clearTimeout within a component, ensuring that all timeouts are cleared when the component unmounts.

Usage