Sign in
Log inSign up

Is good to use async/await in componentWillMount?

Rodrigo Perez's photo
Rodrigo Perez
·Feb 28, 2018

Hi, I want to do a request to an API in the componentWillMount method, but I want to know if is correct change the life cycle methods to async to use the await.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct