Answer the question
In order to leave comments, you need to log in
If not in componentwillmount, then where is the ajax?
Guys, I'm new in React, I can't understand.. If componentWillMount is deprecated, then how not to initialize the component with data from some api, for example, where does the ajax request go?
In componentDidmount, it was not recommended to change states (article on Habré)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question