How techwithtim/learn-react-in-one-project works
Project type and purpose
• This is a front-end single-page application (SPA) built with React and Vite.
• Its sole responsibility is rendering a movies UI (Home and Favorites pages), managing client-side state via React Context, and fetching data from an external movie API.
File structure
• Top-level files:
• index.html – the SPA shell
• package.json, package-lock.json – npm dependencies & scripts
• vite.config.js, eslint.config.js – build & lint configuration
• src/ contains:
• main.jsx – React entry point
• App.jsx – root component
• assets/, css/ – static assets and style sheets
• components/ – reusable UI pieces (NavBar, MovieCard)
• pages/ – route components (Home, Favorites)
• contexts/ – MovieContext for global state
• services/api.js – encapsulates HTTP calls to external API
README for additional insights
• Confirms React + Vite minimal setup with HMR, ESLint rules, and choice of React plugins (Babel or SWC).
• No backend code—project focuses purely on client side.