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 https://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).