We will now retrieve the data from the TheMovieDB API. An API key has already been created, so we can focus on the application part.
To retrieve the data, we will use the library axios, this allows to make HTTP requests in a simple way and to ensure compatibility on all browsers.
axiosuseEffect,useState and axios recover data from the APIWhen the user types in the search field, the corresponding movie list is displayed.