Ex. 4 - Custom Hooks

Instructions

We will now create a specific Hook who will be responsible for doing a search on the API.

  • Create a custom useMovieSearch Hook in src/containers/MovieDb.js

The Hook custom will have to allow to recover a list of films from the API.

Expected result

The application works as before.

Help

App.js