Login
Remember
Register
Ask a Question
What is ComponentWillMount()
0
votes
asked
Dec 22, 2023
in
ReactJS
by
john ganales
What is ComponentWillMount()
componentwillmount
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 22, 2023
by
john ganales
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.
...