Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

when to use useEffect

What does useEffect do? By using this Hook, you tell React that 
your component needs to do something after render. 
React will remember the function you passed (we’ll refer to it 
as our “effect”), and call it later after performing the DOM updates.
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #useEffect
ADD COMMENT
Topic
Name
4+5 =