React Cheat Sheet and Common Int. Questions Flashcards

- Learn the syntax and flow of React - Learn common React Interview Questions

1
Q

What are the 3 phases of lifecycle events in React?

A

0, (Initialization)

  1. Mounting (adding nodes to the DOM)
  2. Updating (changes to nodes already in the DOM)
  3. Unmounting (removing them from the DOM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the steps of the Mounting lifecycle event.
(Hint: There are 4.)

Can you describe the basic flow of each step?

A

STEPS OF MOUNTING LIFECYCLE EVENT:

  1. constructor()
  2. getDerivedStateFromProps()
  3. render()
  4. componentDidMount()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly