SyntaxFix
Write A Post
Hire A Developer
Questions
Just pass the function as the argument in the array of useEffect...
useEffect(() => { functionName() }, [functionName])