0 votes
in ReactJS by
What is ComponentWillMount()

1 Answer

0 votes
by
componentWillMount() is to make API calls once the component is initiated and configure the values into the state. To make an API call, use an HttpClient such as Axios, or we can use fetch() to trigger the AJAX call.
...