romarios1987 / react_movies-list-fetch-movies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movies list - Fetch movies

Task

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

  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).

About


Languages

Language:TypeScript 79.6%Language:CSS 9.4%Language:HTML 5.7%Language:JavaScript 5.3%