Where to put API requests

Based on that, we will have to create a componentDidMount() function that will contain the code that we need to fire off requests to our backend server, instead of sticking them in constructor() or in some other function! This ensures that our component will update and mount in a sane manner!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.35.81