Skip to content

aliceblunt8/react_movies-list-fetch-movies

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.0%
  • SCSS 8.7%
  • HTML 5.3%