Create an application to search for movies
API to use: - https://www.omdbapi.com/
Write your API KEY in a .env file like -----> VITE_OMDB_API_KEY = ......
Requirements:
✅ Need to display a text input and a button to search.
✅ List the movies and display the title, year, and poster.
✅ Make the form work.
✅ Make the movies display in a responsive grid.
✅ Fetch data from the API.
First iteration:
✅ Avoid making the same search twice in a row.
✅ Make the search happen automatically while typing.
✅ Avoid making the search continuously while typing.
Second iteration:
✅ Add pagination with infinity scroll (or a "load more" button).
✅ Display in the UI when the last result has been reached.