Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is useeffect

useEffect is a hook for encapsulating code that has 'side effects,' and is like a combination of componentDidMount , componentDidUpdate , and componentWillUnmount . Previously, functional components didn't have access to the component life cycle, but with useEffect you can tap into it.23.1.2019
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #useeffect
ADD COMMENT
Topic
Name
3+7 =