Use-effect Questions

Ad

React useEffect hook infinity loop

I keep encountering an infinity loop when trying to use the useeffect hook to fetch and set data. ive tried 3 variations of the hook and they all
Ad
Ad
Ad
Ad
Ad
Ad

React useEffect hook toggle issue

I confused myself on how useeffect works in react. the following code works, but in the opposite way as it is intended. instead of the background
Ad

Blog Categories

Ad