How saarthack/react-yt works
This repository is a set of 21 independent React/Vite learning demos, progressing from basic UI composition through state, forms, persistence, API fetching, routing, and shared context. There is no single application workflow or shared runtime: each numbered folder is its own example. Edges show only relationships visible in the supplied excerpts or SOURCE INDEX; uninspected demo internals are represented without inferred connections.
Main entry points: Section1.jsx Hero section · src/App.jsx Components demo · src/App.jsx CSS components · src/App.jsx UI sections
Components 34
UI foundations
- Folder demo
01-folder/src/App.jsx - Components demo
02-components/src/App.jsx - Reusable card
02-components/src/components/Card.jsx - Navbar
02-components/src/components/Navbar.jsx - Props demo
03-props/src/App.jsx - Prop card
03-props/src/components/Card.jsx - Job cards
04-cards-project/src/App.jsx - Job card
04-cards-project/src/components/Card.jsx - CSS components
05-css/src/App.jsx - Button
05-css/src/components/button/Button.jsx - Header
05-css/src/components/header/Header.jsx - Tailwind demo
06-tailwind/src/App.jsx - UI sections
07-ui-project/src/App.jsx - Hero section
07-ui-project/src/components/Section1/Section1.jsx - Second section
07-ui-project/src/components/Section2/Section2.jsx - Section navbar
07-ui-project/src/components/Section1/Navbar.jsx - Page content
07-ui-project/src/components/Section1/Page1Content.jsx
State and input
- Functions demo
08-functions/src/App.jsx - useState demo
09-useState/src/App.jsx - Advanced state
10-usestate-advance/src/App.jsx - Form handling
11-form-handling/src/App.jsx - Two-way binding
12-two-way-binding/src/App.jsx - Notes app
13-notes-app/src/App.jsx - Local storage
14-localstorage/src/App.jsx
Data and effects
- API calling
15-api-calling/src/App.jsx - Effect demo
16-useeffect/src/App.jsx - Image gallery
17-gallery-project/src/App.jsx - Gallery card
17-gallery-project/src/components/Card.jsx - Picsum API
Routing and context
- Basic routes
18-react-router-dom/src/App.jsx - Route navbar
18-react-router-dom/src/components/Navbar.jsx - Nested routes
19-routing-advanced/src/App.jsx - Main navbar
19-routing-advanced/src/components/Navbar.jsx - Secondary navbar
19-routing-advanced/src/components/Navbar2.jsx
Connections 15
- Components demo → Navbar: renders
02-components/src/App.jsx - Components demo → Reusable card: renders
02-components/src/App.jsx - Props demo → Prop card: passes props
03-props/src/App.jsx - Job cards → Job card: renders job data
04-cards-project/src/App.jsx - CSS components → Button: renders
05-css/src/App.jsx - CSS components → Header: renders
05-css/src/App.jsx - UI sections → Hero section: renders with users
07-ui-project/src/App.jsx - UI sections → Second section: renders
07-ui-project/src/App.jsx - Hero section → Section navbar: renders
07-ui-project/src/components/Section1/Section1.jsx - Hero section → Page content: renders
07-ui-project/src/components/Section1/Section1.jsx - Image gallery → Picsum API: fetches pages
17-gallery-project/src/App.jsx - Image gallery → Gallery card: renders results
17-gallery-project/src/App.jsx - Basic routes → Route navbar: renders
18-react-router-dom/src/App.jsx - Nested routes → Main navbar: renders
19-routing-advanced/src/App.jsx - Nested routes → Secondary navbar: renders
19-routing-advanced/src/App.jsx