This project is a movie search application built with React. The main goal of this homework is to practice working with React Router, HTTP requests, query parameters, and lazy-loaded routes.
- GitHub Repository: https://github.com/YOUR_USERNAME/goit-react-hw-05
- Live Demo (Vercel): https://YOUR_PROJECT.vercel.app
- React
- Vite
- React Router DOM
- Axios
- TMDB API
- CSS Modules
The application allows users to search for movies and view detailed information about each movie. Data is fetched from the TMDB API.
Main features include:
- Trending movies on the home page
- Movie search with query parameters
- Movie details page
- Nested routes for cast and reviews
- Go back navigation preserving previous location
- Lazy-loaded routes using React.lazy and Suspense
/ā Home page with trending movies/moviesā Movie search page/movies/:movieIdā Movie details page/movies/:movieId/castā Movie cast/movies/:movieId/reviewsā Movie reviews*ā Not found page
src/ āāā components/ ā āāā MovieCast ā āāā MovieList ā āāā MovieReviews ā āāā Navigation āāā pages/ ā āāā HomePage ā āāā MoviesPage ā āāā MovieDetailsPage ā āāā NotFoundPage āāā services/ ā āāā tmdb-api.js āāā App.jsx āāā main.jsx
This homework focuses on understanding client-side routing, working with URL search parameters, nested routes, and handling asynchronous API requests in React.
The project fully meets all homework requirements and runs without console errors or warnings.
Happy coding! š