A

Admin • 828.03K Points
Coach

Q. What is the recommended place to fetch data in a class component?

  • (A) constructor
  • (B) render
  • (C) componentDidMount
  • (D) componentWillMount
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
`componentDidMount` is the correct place to initiate data fetch after the component is rendered.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.