# raguct25/my-learnings architecture

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

- Interactive diagram: https://gitdiagram.com/raguct25/my-learnings
- Repository: https://github.com/raguct25/my-learnings

## Overview

This repository is a collection of learning examples rather than one integrated product: its main user-facing runtime is a React app, alongside independent Next.js, JavaScript, and Node.js examples. The React app currently renders the location map; several other imported demos are commented out in App.tsx, so they are represented as capabilities without invented runtime connections. Source excerpts support the map’s geolocation and map-tile relationships, plus selected component relationships. Other unsampled example behavior is not inferred.

Main entry points: [`react-learnings/src/LocationComponet/MapComponent.tsx`](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/LocationComponet/MapComponent.tsx) (Location map), [`react-learnings/src/App.tsx`](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/App.tsx) (React app), [`react-learnings/src/meta/FacebookLogin.tsx`](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/meta/FacebookLogin.tsx) (Facebook login), [`react-learnings/src/DynamicComponents/DynamicComponent.tsx`](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/DynamicComponent.tsx) (Dynamic content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_react["React learning app"]
  node_react_app["React app<br/>[App.tsx]"]
  node_map["Location map<br/>[MapComponent.tsx]"]
  node_location["Location demo"]
  node_carousel["Carousel demo"]
  node_carousel_buttons["Carousel controls"]
  node_date_picker["Date picker"]
  node_dynamic["Dynamic content"]
  node_dynamic_renderer["Content renderer"]
  node_text_style["Text styling"]
  node_phone["Phone input"]
  node_header["Plan header"]
  node_constants["Plan constants<br/>[constant.ts]"]
  node_routes_default["Default route demo"]
  node_routes_child["Child route demo<br/>[ChildComponent.tsx]"]
  node_ssr["SSR demo<br/>[SsrComponent.tsx]"]
  node_fetch["Fetch experiments<br/>[FetchComponent.tsx]"]
  node_fetch_hook["Fetch hook<br/>[useFetch.ts]"]
  node_facebook["Facebook component"]
  node_facebook_login["Facebook login<br/>[FacebookLogin.tsx]"]
  node_practice["Practice component"]
end

subgraph group_next["Next.js example"]
  node_next_page["Next.js page<br/>[page.tsx]"]
  node_next_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_javascript["JavaScript examples"]
  node_box_number["Boxing example<br/>[boxNumber.js]"]
  node_geolocation_js["Geolocation example<br/>[geolocation.js]"]
  node_modify["Modification example<br/>[modify.js]"]
  node_arrays["Array practice<br/>[practiceArray.js]"]
  node_closures["Closure practice"]
  node_functions["Function practice"]
  node_hoisting["Hoisting practice"]
end

subgraph group_node["Node.js example"]
end

node_user(("Browser user"))
node_browser_geo(("Browser geolocation"))
node_tile_service(("OpenStreetMap tiles"))
node_users_api(("JSONPlaceholder API"))
node_facebook_service(("Facebook SDK"))

node_user -->|"opens"| node_react_app
node_react_app -->|"renders"| node_map
node_map -->|"reads location"| node_browser_geo
node_map -->|"loads tiles"| node_tile_service
node_dynamic -->|"uses renderer"| node_dynamic_renderer
node_header -->|"reads status"| node_constants
node_facebook -->|"renders login"| node_facebook_login
node_facebook_login -->|"loads SDK"| node_facebook_service
node_fetch_hook -->|"requests URL"| node_users_api
node_fetch -->|"queries users"| node_users_api

click node_react_app "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/App.tsx"
click node_map "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/LocationComponet/MapComponent.tsx"
click node_location "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/LocationComponet/LocationComponent.tsx"
click node_carousel "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/CarouselComponent/CarouselComponent.tsx"
click node_carousel_buttons "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/CarouselComponent/CustomButtonGroup.tsx"
click node_date_picker "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DatePickerComponent/DatePickerComponent.tsx"
click node_dynamic "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/DynamicComponent.tsx"
click node_dynamic_renderer "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/DynamicRenderer.tsx"
click node_text_style "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/TextStyleDynamic.tsx"
click node_phone "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/InputPhoneComponent/InputPhoneComponent.tsx"
click node_header "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/ProjectComponents/HeaderComponent.tsx"
click node_constants "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/helpers/constant.ts"
click node_routes_default "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/RouteComponents/DefaultComponent/DefaultComponent.tsx"
click node_routes_child "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/RouteComponents/ChildComponent/ChildComponent.tsx"
click node_ssr "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/SSRComponents/SsrComponent.tsx"
click node_fetch "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/fetch-component/FetchComponent.tsx"
click node_fetch_hook "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/hooks/useFetch.ts"
click node_facebook "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/meta/FacebookComponent.tsx"
click node_facebook_login "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/meta/FacebookLogin.tsx"
click node_practice "https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/practice-component/PracticeComponent.tsx"
click node_next_page "https://github.com/raguct25/my-learnings/blob/main/nextjs-learnings/src/app/page.tsx"
click node_next_layout "https://github.com/raguct25/my-learnings/blob/main/nextjs-learnings/src/app/layout.tsx"
click node_box_number "https://github.com/raguct25/my-learnings/blob/main/javascript/boxNumber.js"
click node_geolocation_js "https://github.com/raguct25/my-learnings/blob/main/javascript/geolocation.js"
click node_modify "https://github.com/raguct25/my-learnings/blob/main/javascript/modify.js"
click node_arrays "https://github.com/raguct25/my-learnings/blob/main/javascript/practiceArray.js"
click node_closures "https://github.com/raguct25/my-learnings/blob/main/javascript/practiceClosures.js"
click node_functions "https://github.com/raguct25/my-learnings/blob/main/javascript/practiceFunctions.js"
click node_hoisting "https://github.com/raguct25/my-learnings/blob/main/javascript/practiceHoisting.js"

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_react_app,node_map,node_location,node_carousel,node_carousel_buttons,node_date_picker,node_dynamic,node_dynamic_renderer,node_text_style,node_phone,node_header,node_constants,node_routes_default,node_routes_child,node_ssr,node_fetch,node_fetch_hook,node_facebook,node_facebook_login,node_practice,node_user,node_browser_geo toneBlue
class node_next_page,node_next_layout toneAmber
class node_box_number,node_geolocation_js,node_modify,node_arrays,node_closures,node_functions,node_hoisting,node_users_api toneMint
class node_tile_service,node_facebook_service toneIndigo
```

## Components

### React learning app

- [React app](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/App.tsx): `react-learnings/src/App.tsx`
- [Location map](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/LocationComponet/MapComponent.tsx): `react-learnings/src/LocationComponet/MapComponent.tsx`
- [Location demo](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/LocationComponet/LocationComponent.tsx): `react-learnings/src/LocationComponet/LocationComponent.tsx`
- [Carousel demo](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/CarouselComponent/CarouselComponent.tsx): `react-learnings/src/CarouselComponent/CarouselComponent.tsx`
- [Carousel controls](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/CarouselComponent/CustomButtonGroup.tsx): `react-learnings/src/CarouselComponent/CustomButtonGroup.tsx`
- [Date picker](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DatePickerComponent/DatePickerComponent.tsx): `react-learnings/src/DatePickerComponent/DatePickerComponent.tsx`
- [Dynamic content](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/DynamicComponent.tsx): `react-learnings/src/DynamicComponents/DynamicComponent.tsx`
- [Content renderer](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/DynamicRenderer.tsx): `react-learnings/src/DynamicComponents/DynamicRenderer.tsx`
- [Text styling](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/DynamicComponents/TextStyleDynamic.tsx): `react-learnings/src/DynamicComponents/TextStyleDynamic.tsx`
- [Phone input](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/InputPhoneComponent/InputPhoneComponent.tsx): `react-learnings/src/InputPhoneComponent/InputPhoneComponent.tsx`
- [Plan header](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/ProjectComponents/HeaderComponent.tsx): `react-learnings/src/ProjectComponents/HeaderComponent.tsx`
- [Plan constants](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/helpers/constant.ts): `react-learnings/src/helpers/constant.ts`
- [Default route demo](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/RouteComponents/DefaultComponent/DefaultComponent.tsx): `react-learnings/src/RouteComponents/DefaultComponent/DefaultComponent.tsx`
- [Child route demo](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/RouteComponents/ChildComponent/ChildComponent.tsx): `react-learnings/src/RouteComponents/ChildComponent/ChildComponent.tsx`
- [SSR demo](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/SSRComponents/SsrComponent.tsx): `react-learnings/src/SSRComponents/SsrComponent.tsx`
- [Fetch experiments](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/fetch-component/FetchComponent.tsx): `react-learnings/src/fetch-component/FetchComponent.tsx`
- [Fetch hook](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/hooks/useFetch.ts): `react-learnings/src/hooks/useFetch.ts`
- [Facebook component](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/meta/FacebookComponent.tsx): `react-learnings/src/meta/FacebookComponent.tsx`
- [Facebook login](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/meta/FacebookLogin.tsx): `react-learnings/src/meta/FacebookLogin.tsx`
- [Practice component](https://github.com/raguct25/my-learnings/blob/main/react-learnings/src/practice-component/PracticeComponent.tsx): `react-learnings/src/practice-component/PracticeComponent.tsx`

### Next.js example

- [Next.js page](https://github.com/raguct25/my-learnings/blob/main/nextjs-learnings/src/app/page.tsx): `nextjs-learnings/src/app/page.tsx`
- [Root layout](https://github.com/raguct25/my-learnings/blob/main/nextjs-learnings/src/app/layout.tsx): `nextjs-learnings/src/app/layout.tsx`

### JavaScript examples

- [Boxing example](https://github.com/raguct25/my-learnings/blob/main/javascript/boxNumber.js): `javascript/boxNumber.js`
- [Geolocation example](https://github.com/raguct25/my-learnings/blob/main/javascript/geolocation.js): `javascript/geolocation.js`
- [Modification example](https://github.com/raguct25/my-learnings/blob/main/javascript/modify.js): `javascript/modify.js`
- [Array practice](https://github.com/raguct25/my-learnings/blob/main/javascript/practiceArray.js): `javascript/practiceArray.js`
- [Closure practice](https://github.com/raguct25/my-learnings/blob/main/javascript/practiceClosures.js): `javascript/practiceClosures.js`
- [Function practice](https://github.com/raguct25/my-learnings/blob/main/javascript/practiceFunctions.js): `javascript/practiceFunctions.js`
- [Hoisting practice](https://github.com/raguct25/my-learnings/blob/main/javascript/practiceHoisting.js): `javascript/practiceHoisting.js`

### Other components

- **Browser user**
- **Browser geolocation**
- **OpenStreetMap tiles**
- **JSONPlaceholder API**
- **Facebook SDK**

## Connections

- Browser user → React app: opens (evidence: `react-learnings/src/App.tsx`)
- React app → Location map: renders (evidence: `react-learnings/src/App.tsx`)
- Location map → Browser geolocation: reads location (evidence: `react-learnings/src/LocationComponet/MapComponent.tsx`)
- Location map → OpenStreetMap tiles: loads tiles (evidence: `react-learnings/src/LocationComponet/MapComponent.tsx`)
- Dynamic content → Content renderer: uses renderer (evidence: `react-learnings/src/DynamicComponents/DynamicComponent.tsx`)
- Plan header → Plan constants: reads status (evidence: `react-learnings/src/ProjectComponents/HeaderComponent.tsx`)
- Facebook component → Facebook login: renders login (evidence: `react-learnings/src/meta/FacebookComponent.tsx`)
- Facebook login → Facebook SDK: loads SDK (evidence: `react-learnings/src/meta/FacebookLogin.tsx`)
- Fetch hook → JSONPlaceholder API: requests URL (evidence: `react-learnings/src/hooks/useFetch.ts`)
- Fetch experiments → JSONPlaceholder API: queries users (evidence: `react-learnings/src/fetch-component/FetchComponent.tsx`)
