Movie App
Movie App build on React and Typescript
Getting Started
Prerequisite
Installing
- git clone the repository
- cd in to repository folder and run
npm install
To Start Project
Features List
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