Why is useState within useEffect not working in React

welcome to shbcf.ru