I have an state:
const [isOpen, setIsOpen] = useState<boolean>(false);
If I use updater function , I have type error and I don’t know how to fix it. Please guide me
I have an state:
const [isOpen, setIsOpen] = useState<boolean>(false);
If I use updater function , I have type error and I don’t know how to fix it. Please guide me