Question: In which lifecycle method do you make requests for data in a class component?

  1. constructor
  2. componentDidMount
  3. componentWillReceiveProps
  4. componentWillMount

Answer: The correct answer of the above question is Option B:componentDidMount