My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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.