Front end developer. Keen with JavaScript, HTML5, CSS3, JAMstack, React, Gatsby, GraphQL, Web Accessibility and
UX/UI Design Principles
Trained with Vets Who Code https://vetswhocode.io
As you can see I wrapped the useEffect() around the fetchdata() function. The // eslint-disable-next-line react-hooks/exhaustive-deps comment was a whole other issue.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article! Straight to the point. One issue I ran into was not wrapping
useEffect()
around another function. One example was afetch
function.As you can see I wrapped the
useEffect()
around thefetchdata()
function. The// eslint-disable-next-line react-hooks/exhaustive-deps
comment was a whole other issue.