# saarthack/react-yt architecture

> Architecture diagram of the GitHub repository saarthack/react-yt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saarthack/react-yt
- Repository: https://github.com/saarthack/react-yt

## Overview

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: [`07-ui-project/src/components/Section1/Section1.jsx`](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Section1.jsx) (Hero section), [`02-components/src/App.jsx`](https://github.com/saarthack/react-yt/blob/main/02-components/src/App.jsx) (Components demo), [`05-css/src/App.jsx`](https://github.com/saarthack/react-yt/blob/main/05-css/src/App.jsx) (CSS components), [`07-ui-project/src/App.jsx`](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/App.jsx) (UI sections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["UI foundations"]
  node_lesson01["Folder demo<br/>[App.jsx]"]
  node_lesson02["Components demo<br/>[App.jsx]"]
  node_card02["Reusable card<br/>[Card.jsx]"]
  node_nav02["Navbar<br/>[Navbar.jsx]"]
  node_lesson03["Props demo<br/>[App.jsx]"]
  node_card03["Prop card<br/>[Card.jsx]"]
  node_lesson04["Job cards<br/>[App.jsx]"]
  node_card04["Job card<br/>[Card.jsx]"]
  node_lesson05["CSS components<br/>[App.jsx]"]
  node_button05["Button<br/>[Button.jsx]"]
  node_header05["Header<br/>[Header.jsx]"]
  node_lesson06["Tailwind demo<br/>[App.jsx]"]
  node_lesson07["UI sections<br/>[App.jsx]"]
  node_section1["Hero section<br/>[Section1.jsx]"]
  node_section2["Second section<br/>[Section2.jsx]"]
  node_nav07["Section navbar<br/>[Navbar.jsx]"]
  node_page07["Page content<br/>[Page1Content.jsx]"]
end

subgraph group_state["State and input"]
  node_lesson08["Functions demo<br/>[App.jsx]"]
  node_lesson09["useState demo<br/>[App.jsx]"]
  node_lesson10["Advanced state<br/>[App.jsx]"]
  node_lesson11["Form handling<br/>[App.jsx]"]
  node_lesson12["Two-way binding<br/>[App.jsx]"]
  node_lesson13["Notes app<br/>[App.jsx]"]
  node_lesson14["Local storage<br/>[App.jsx]"]
end

subgraph group_data["Data and effects"]
  node_lesson15["API calling<br/>[App.jsx]"]
  node_lesson16["Effect demo<br/>[App.jsx]"]
  node_gallery["Image gallery<br/>[App.jsx]"]
  node_gallerycard["Gallery card<br/>[Card.jsx]"]
  node_picsum(("Picsum API"))
end

subgraph group_navigation["Routing and context"]
  node_routerbasic["Basic routes<br/>[App.jsx]"]
  node_nav18["Route navbar<br/>[Navbar.jsx]"]
  node_routeradvanced["Nested routes<br/>[App.jsx]"]
  node_nav19["Main navbar<br/>[Navbar.jsx]"]
  node_nav219["Secondary navbar<br/>[Navbar2.jsx]"]
end

node_lesson02 -->|"renders"| node_nav02
node_lesson02 -->|"renders"| node_card02
node_lesson03 -->|"passes props"| node_card03
node_lesson04 -->|"renders job data"| node_card04
node_lesson05 -->|"renders"| node_button05
node_lesson05 -->|"renders"| node_header05
node_lesson07 -->|"renders with users"| node_section1
node_lesson07 -->|"renders"| node_section2
node_section1 -->|"renders"| node_nav07
node_section1 -->|"renders"| node_page07
node_gallery -->|"fetches pages"| node_picsum
node_gallery -->|"renders results"| node_gallerycard
node_routerbasic -->|"renders"| node_nav18
node_routeradvanced -->|"renders"| node_nav19
node_routeradvanced -->|"renders"| node_nav219

click node_lesson01 "https://github.com/saarthack/react-yt/blob/main/01-folder/src/App.jsx"
click node_lesson02 "https://github.com/saarthack/react-yt/blob/main/02-components/src/App.jsx"
click node_card02 "https://github.com/saarthack/react-yt/blob/main/02-components/src/components/Card.jsx"
click node_nav02 "https://github.com/saarthack/react-yt/blob/main/02-components/src/components/Navbar.jsx"
click node_lesson03 "https://github.com/saarthack/react-yt/blob/main/03-props/src/App.jsx"
click node_card03 "https://github.com/saarthack/react-yt/blob/main/03-props/src/components/Card.jsx"
click node_lesson04 "https://github.com/saarthack/react-yt/blob/main/04-cards-project/src/App.jsx"
click node_card04 "https://github.com/saarthack/react-yt/blob/main/04-cards-project/src/components/Card.jsx"
click node_lesson05 "https://github.com/saarthack/react-yt/blob/main/05-css/src/App.jsx"
click node_button05 "https://github.com/saarthack/react-yt/blob/main/05-css/src/components/button/Button.jsx"
click node_header05 "https://github.com/saarthack/react-yt/blob/main/05-css/src/components/header/Header.jsx"
click node_lesson06 "https://github.com/saarthack/react-yt/blob/main/06-tailwind/src/App.jsx"
click node_lesson07 "https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/App.jsx"
click node_section1 "https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Section1.jsx"
click node_section2 "https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section2/Section2.jsx"
click node_nav07 "https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Navbar.jsx"
click node_page07 "https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Page1Content.jsx"
click node_lesson08 "https://github.com/saarthack/react-yt/blob/main/08-functions/src/App.jsx"
click node_lesson09 "https://github.com/saarthack/react-yt/blob/main/09-useState/src/App.jsx"
click node_lesson10 "https://github.com/saarthack/react-yt/blob/main/10-usestate-advance/src/App.jsx"
click node_lesson11 "https://github.com/saarthack/react-yt/blob/main/11-form-handling/src/App.jsx"
click node_lesson12 "https://github.com/saarthack/react-yt/blob/main/12-two-way-binding/src/App.jsx"
click node_lesson13 "https://github.com/saarthack/react-yt/blob/main/13-notes-app/src/App.jsx"
click node_lesson14 "https://github.com/saarthack/react-yt/blob/main/14-localstorage/src/App.jsx"
click node_lesson15 "https://github.com/saarthack/react-yt/blob/main/15-api-calling/src/App.jsx"
click node_lesson16 "https://github.com/saarthack/react-yt/blob/main/16-useeffect/src/App.jsx"
click node_gallery "https://github.com/saarthack/react-yt/blob/main/17-gallery-project/src/App.jsx"
click node_gallerycard "https://github.com/saarthack/react-yt/blob/main/17-gallery-project/src/components/Card.jsx"
click node_routerbasic "https://github.com/saarthack/react-yt/blob/main/18-react-router-dom/src/App.jsx"
click node_nav18 "https://github.com/saarthack/react-yt/blob/main/18-react-router-dom/src/components/Navbar.jsx"
click node_routeradvanced "https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/App.jsx"
click node_nav19 "https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/components/Navbar.jsx"
click node_nav219 "https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/components/Navbar2.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_lesson01,node_lesson02,node_card02,node_nav02,node_lesson03,node_card03,node_lesson04,node_card04,node_lesson05,node_button05,node_header05,node_lesson06,node_lesson07,node_section1,node_section2,node_nav07,node_page07 toneBlue
class node_lesson08,node_lesson09,node_lesson10,node_lesson11,node_lesson12,node_lesson13,node_lesson14 toneAmber
class node_lesson15,node_lesson16,node_gallery,node_gallerycard,node_picsum toneMint
class node_routerbasic,node_nav18,node_routeradvanced,node_nav19,node_nav219 toneRose
```

## Components

### UI foundations

- [Folder demo](https://github.com/saarthack/react-yt/blob/main/01-folder/src/App.jsx): `01-folder/src/App.jsx`
- [Components demo](https://github.com/saarthack/react-yt/blob/main/02-components/src/App.jsx): `02-components/src/App.jsx`
- [Reusable card](https://github.com/saarthack/react-yt/blob/main/02-components/src/components/Card.jsx): `02-components/src/components/Card.jsx`
- [Navbar](https://github.com/saarthack/react-yt/blob/main/02-components/src/components/Navbar.jsx): `02-components/src/components/Navbar.jsx`
- [Props demo](https://github.com/saarthack/react-yt/blob/main/03-props/src/App.jsx): `03-props/src/App.jsx`
- [Prop card](https://github.com/saarthack/react-yt/blob/main/03-props/src/components/Card.jsx): `03-props/src/components/Card.jsx`
- [Job cards](https://github.com/saarthack/react-yt/blob/main/04-cards-project/src/App.jsx): `04-cards-project/src/App.jsx`
- [Job card](https://github.com/saarthack/react-yt/blob/main/04-cards-project/src/components/Card.jsx): `04-cards-project/src/components/Card.jsx`
- [CSS components](https://github.com/saarthack/react-yt/blob/main/05-css/src/App.jsx): `05-css/src/App.jsx`
- [Button](https://github.com/saarthack/react-yt/blob/main/05-css/src/components/button/Button.jsx): `05-css/src/components/button/Button.jsx`
- [Header](https://github.com/saarthack/react-yt/blob/main/05-css/src/components/header/Header.jsx): `05-css/src/components/header/Header.jsx`
- [Tailwind demo](https://github.com/saarthack/react-yt/blob/main/06-tailwind/src/App.jsx): `06-tailwind/src/App.jsx`
- [UI sections](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/App.jsx): `07-ui-project/src/App.jsx`
- [Hero section](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Section1.jsx): `07-ui-project/src/components/Section1/Section1.jsx`
- [Second section](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section2/Section2.jsx): `07-ui-project/src/components/Section2/Section2.jsx`
- [Section navbar](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Navbar.jsx): `07-ui-project/src/components/Section1/Navbar.jsx`
- [Page content](https://github.com/saarthack/react-yt/blob/main/07-ui-project/src/components/Section1/Page1Content.jsx): `07-ui-project/src/components/Section1/Page1Content.jsx`

### State and input

- [Functions demo](https://github.com/saarthack/react-yt/blob/main/08-functions/src/App.jsx): `08-functions/src/App.jsx`
- [useState demo](https://github.com/saarthack/react-yt/blob/main/09-useState/src/App.jsx): `09-useState/src/App.jsx`
- [Advanced state](https://github.com/saarthack/react-yt/blob/main/10-usestate-advance/src/App.jsx): `10-usestate-advance/src/App.jsx`
- [Form handling](https://github.com/saarthack/react-yt/blob/main/11-form-handling/src/App.jsx): `11-form-handling/src/App.jsx`
- [Two-way binding](https://github.com/saarthack/react-yt/blob/main/12-two-way-binding/src/App.jsx): `12-two-way-binding/src/App.jsx`
- [Notes app](https://github.com/saarthack/react-yt/blob/main/13-notes-app/src/App.jsx): `13-notes-app/src/App.jsx`
- [Local storage](https://github.com/saarthack/react-yt/blob/main/14-localstorage/src/App.jsx): `14-localstorage/src/App.jsx`

### Data and effects

- [API calling](https://github.com/saarthack/react-yt/blob/main/15-api-calling/src/App.jsx): `15-api-calling/src/App.jsx`
- [Effect demo](https://github.com/saarthack/react-yt/blob/main/16-useeffect/src/App.jsx): `16-useeffect/src/App.jsx`
- [Image gallery](https://github.com/saarthack/react-yt/blob/main/17-gallery-project/src/App.jsx): `17-gallery-project/src/App.jsx`
- [Gallery card](https://github.com/saarthack/react-yt/blob/main/17-gallery-project/src/components/Card.jsx): `17-gallery-project/src/components/Card.jsx`
- **Picsum API**

### Routing and context

- [Basic routes](https://github.com/saarthack/react-yt/blob/main/18-react-router-dom/src/App.jsx): `18-react-router-dom/src/App.jsx`
- [Route navbar](https://github.com/saarthack/react-yt/blob/main/18-react-router-dom/src/components/Navbar.jsx): `18-react-router-dom/src/components/Navbar.jsx`
- [Nested routes](https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/App.jsx): `19-routing-advanced/src/App.jsx`
- [Main navbar](https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/components/Navbar.jsx): `19-routing-advanced/src/components/Navbar.jsx`
- [Secondary navbar](https://github.com/saarthack/react-yt/blob/main/19-routing-advanced/src/components/Navbar2.jsx): `19-routing-advanced/src/components/Navbar2.jsx`

## Connections

- Components demo → Navbar: renders (evidence: `02-components/src/App.jsx`)
- Components demo → Reusable card: renders (evidence: `02-components/src/App.jsx`)
- Props demo → Prop card: passes props (evidence: `03-props/src/App.jsx`)
- Job cards → Job card: renders job data (evidence: `04-cards-project/src/App.jsx`)
- CSS components → Button: renders (evidence: `05-css/src/App.jsx`)
- CSS components → Header: renders (evidence: `05-css/src/App.jsx`)
- UI sections → Hero section: renders with users (evidence: `07-ui-project/src/App.jsx`)
- UI sections → Second section: renders (evidence: `07-ui-project/src/App.jsx`)
- Hero section → Section navbar: renders (evidence: `07-ui-project/src/components/Section1/Section1.jsx`)
- Hero section → Page content: renders (evidence: `07-ui-project/src/components/Section1/Section1.jsx`)
- Image gallery → Picsum API: fetches pages (evidence: `17-gallery-project/src/App.jsx`)
- Image gallery → Gallery card: renders results (evidence: `17-gallery-project/src/App.jsx`)
- Basic routes → Route navbar: renders (evidence: `18-react-router-dom/src/App.jsx`)
- Nested routes → Main navbar: renders (evidence: `19-routing-advanced/src/App.jsx`)
- Nested routes → Secondary navbar: renders (evidence: `19-routing-advanced/src/App.jsx`)
