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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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?)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly