Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useEffect not working array changes

useEffect(() => {
  console.log('Something happened')
}, [JSON.stringify(data)]); // Changes will be caught :) !
 
PREVIOUS NEXT
Tagged: #useEffect #working #array
ADD COMMENT
Topic
Name
7+3 =