Hamza
Hamza
For functional components you can use a custom hook: ```js import { useEffect, useRef } from "react"; const useIsMounted = () => { const isMounted = useRef(false); useEffect(() => {...
@nerdyman thanks for the quick reply. Here you go: - OS: **macOS Sonoma 14.0** - Node Version: **v18.17.1** (using nvm) - npm Version: **9.6.7** Additional note: I think the main...
> I haven't tried it locally yet but it works as expected on CodeSandbox https://codesandbox.io/p/sandbox/github/SalahHamza/react-compare-slider-repro/tree/main/ @nerdyman I think the main reason why this is working, is because in the Sandbox...