React-Movie-App Tailwind Templates

React Movie App

This React and TypeScript app uses Tailwind CSS for a responsive user experience. It allows users to search for movies, rate them, and add them to their favorites list.

Movie App

Movie App build on React and Typescript

Getting Started

Prerequisite

  • Node
  • npm

Installing

  • git clone the repository
  • cd in to repository folder and run npm install

To Start Project

  • run npm run dev

Features List

  • Search Movies and their details
  • storing favorite movies list in local storage
  • Initial design
  • Add Movie to favorites and remove them
  • Smooth animations using framer motion
  • lazy loading using react suspense and lazy
  • Responsive

Authors

Fozan Javaid Fozan Javaid

Documentation for Custom Hooks

Custom Hook 1: useFetchMovieHook

  • Location: src/components/CustomeHooks/useFetchMovieHook.tsx
  • Description:
    • This hook uses TanStack useSuspenseQuery and takes in movie's name.
    • It provides the search results based on the movie searched.
    • This hook uses the omdbapi API for fetching data.
  • Use Case:
    • Used in the Movielist component located at src/Components/complex/Movielist/Movielist.tsx

Custom Hook 2: useFetchMovieDetailsHook

  • Location: src/components/CustomeHooks/useFetchMovieDetailsHook.tsx
  • Description:
    • This hook uses TanStack useSuspenseQuery and takes in movie's id.
    • It provides the detailed description on the selected movie.
    • This hook uses the omdbapi API for fetching data.
  • Use Case:
    • Used in the SelectedMovieDetails component located at src/Components/compound/SelectedMovieDetails/SelectedMovieDetails.tsx

Top categories

Loading Svelte Themes