Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 916 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 916 Bytes

Movies list - Fetch movies

Task

Implement FindMovie component to load movies from OMDb API (You need to register and get an API key).

Don't use class components. Use React Hooks instead.

  1. When user enters a movie title and clicks a search button, send a request to http://www.omdbapi.com/?apikey=[yourkey]&t=[title].
  2. If film is not found show an error message below the input. Hide the error after changing a title.
  3. If a film has been found show the preview as a MovieCard.
  4. Add a movie to the list after submitting a form and clear the input.
  5. Don't add the same film to the list twice (compare by imdbId).