useEffect Flashcards
React hooks
1
Q
Why I need to use useEffect?
A
useEffect allows developers perform “Side effect” in their function components.
useEffect gives a function component a lifecycle.
2
Q
A
2
Q
What is useEffect?
A
useEffect is a React hook that let you synchronize a component with an external system (you can get list data form database from here).
useEffect(setup, dependencies?)