# sudheerj/reactjs-interview-questions architecture

> Architecture diagram of the GitHub repository sudheerj/reactjs-interview-questions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sudheerj/reactjs-interview-questions
- Repository: https://github.com/sudheerj/reactjs-interview-questions

## Overview

This repository is a collection of React interview-practice material and small example applications, rather than one integrated product. Users browse coding exercises, inspect hook demonstrations, or interact with standalone UI projects. The graph preserves the principal applications and major examples visible in the tree; links among unsampled components are included only where the SOURCE INDEX or excerpts show references.

Main entry points: [`coding-hooks/src/App.tsx`](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/App.tsx) (Hook Gallery), [`coding-exercise/src/App.js`](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/App.js) (Exercise Browser), [`coding-exercise/src/components/HomePage.js`](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/components/HomePage.js) (Exercise Home), [`coding-projects/data-table-app/src/App.tsx`](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/data-table-app/src/App.tsx) (User Table)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_practice["Coding Exercises"]
  node_exercise_app["Exercise Browser<br/>[App.js]"]
  node_exercise_home["Exercise Home<br/>[HomePage.js]"]
  node_exercise_registry["Exercise Registry<br/>[index.js]"]
  node_exercise_cards["Exercise Cards<br/>[ExerciseCard.js]"]
end

subgraph group_hooks["Hook Demos"]
  node_hook_gallery["Hook Gallery<br/>[App.tsx]"]
  node_previous_demo["Previous Demo<br/>[App.tsx]"]
  node_debounce_demo["Debounce Demo<br/>[App.tsx]"]
  node_callback_demo["Debounce Callback<br/>[App.tsx]"]
  node_toggle_demo["Toggle Demo<br/>[App.tsx]"]
  node_interval_demo["Interval Demo<br/>[App.tsx]"]
  node_storage_demo["Storage Demo<br/>[App.tsx]"]
  node_fetch_demo["Fetch Demo<br/>[App.tsx]"]
  node_throttle_demo["Throttle Demo<br/>[App.tsx]"]
end

subgraph group_ui["UI Examples"]
  node_accordion["Accordion Example<br/>[App.tsx]"]
  node_autocomplete["Autocomplete Example<br/>[App.tsx]"]
  node_carousel["Carousel Example<br/>[App.tsx]"]
  node_modal["Modal Example<br/>[App.tsx]"]
  node_rating["Star Rating<br/>[App.tsx]"]
  node_theme["Theme Switcher<br/>[App.tsx]"]
  node_tree["Tree View<br/>[App.tsx]"]
end

subgraph group_data["Data Examples"]
  node_table["User Table<br/>[App.tsx]"]
  node_user_service["User Service<br/>[userService.ts]"]
  node_infinite["Infinite Posts<br/>[InfinitePosts.tsx]"]
  node_comments["Nested Comments<br/>[App.tsx]"]
  node_cart["Shopping Cart<br/>[App.tsx]"]
  node_todos["Todo App<br/>[App.tsx]"]
  node_jobs["Jobs Example<br/>[App.tsx]"]
end

node_learner(("Learner"))

node_learner -->|"browses exercises"| node_exercise_app
node_exercise_app -->|"renders home"| node_exercise_home
node_exercise_app -->|"selects exercise"| node_exercise_registry
node_exercise_home -->|"renders cards"| node_exercise_cards
node_learner -->|"selects demo"| node_hook_gallery
node_hook_gallery -->|"renders by selection"| node_previous_demo
node_hook_gallery -->|"renders by selection"| node_debounce_demo
node_hook_gallery -->|"renders by selection"| node_callback_demo
node_hook_gallery -->|"renders by selection"| node_toggle_demo
node_hook_gallery -->|"renders by selection"| node_interval_demo
node_hook_gallery -->|"renders by selection"| node_storage_demo
node_hook_gallery -->|"renders by selection"| node_fetch_demo
node_learner -.->|"tries demo"| node_throttle_demo
node_learner -.->|"uses example"| node_accordion
node_learner -->|"searches fruits"| node_autocomplete
node_learner -.->|"uses example"| node_carousel
node_learner -.->|"uses example"| node_modal
node_learner -.->|"uses example"| node_rating
node_learner -->|"changes theme"| node_theme
node_learner -.->|"uses example"| node_tree
node_table -->|"loads users"| node_user_service
node_learner -->|"searches users"| node_table
node_learner -.->|"views posts"| node_infinite
node_learner -->|"posts comments"| node_comments
node_learner -->|"manages cart"| node_cart
node_learner -->|"manages todos"| node_todos
node_learner -.->|"views jobs"| node_jobs

click node_exercise_app "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/App.js"
click node_exercise_home "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/components/HomePage.js"
click node_exercise_registry "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/exercises/index.js"
click node_exercise_cards "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/components/ExerciseCard.js"
click node_hook_gallery "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/App.tsx"
click node_previous_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/01-usePrevious/App.tsx"
click node_debounce_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/02-useDebounce/App.tsx"
click node_callback_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/03-useDebounceCallback/App.tsx"
click node_toggle_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/04-useToggle/App.tsx"
click node_interval_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/05-useInterval/App.tsx"
click node_storage_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/06-useLocalStorage/App.tsx"
click node_fetch_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/07-useFetch/App.tsx"
click node_throttle_demo "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/08-useThrottle/App.tsx"
click node_accordion "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/accordion-app/src/App.tsx"
click node_autocomplete "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/autocomplete-app/src/App.tsx"
click node_carousel "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/carousel-app/src/App.tsx"
click node_modal "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/react-modal/src/App.tsx"
click node_rating "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/star-rating/src/App.tsx"
click node_theme "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/theme-switcher/src/App.tsx"
click node_tree "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/tree-view-app/src/App.tsx"
click node_table "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/data-table-app/src/App.tsx"
click node_user_service "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/data-table-app/src/services/userService.ts"
click node_infinite "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/infinite-scroll-app/src/components/InfinitePosts.tsx"
click node_comments "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/nested-comments/src/App.tsx"
click node_cart "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/shopping-cart/src/App.tsx"
click node_todos "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/todo-app/src/App.tsx"
click node_jobs "https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/hacker-news-jobs/src/App.tsx"

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_exercise_app,node_exercise_home,node_exercise_registry,node_exercise_cards toneBlue
class node_hook_gallery,node_previous_demo,node_debounce_demo,node_callback_demo,node_toggle_demo,node_interval_demo,node_storage_demo,node_fetch_demo,node_throttle_demo toneAmber
class node_accordion,node_autocomplete,node_carousel,node_modal,node_rating,node_theme,node_tree toneMint
class node_table,node_user_service,node_infinite,node_comments,node_cart,node_todos,node_jobs toneRose
class node_learner toneIndigo
```

## Components

### Coding Exercises

- [Exercise Browser](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/App.js): `coding-exercise/src/App.js`
- [Exercise Home](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/components/HomePage.js): `coding-exercise/src/components/HomePage.js`
- [Exercise Registry](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/exercises/index.js): `coding-exercise/src/exercises/index.js`
- [Exercise Cards](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-exercise/src/components/ExerciseCard.js): `coding-exercise/src/components/ExerciseCard.js`

### Hook Demos

- [Hook Gallery](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/App.tsx): `coding-hooks/src/App.tsx`
- [Previous Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/01-usePrevious/App.tsx): `coding-hooks/src/hooks/01-usePrevious/App.tsx`
- [Debounce Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/02-useDebounce/App.tsx): `coding-hooks/src/hooks/02-useDebounce/App.tsx`
- [Debounce Callback](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/03-useDebounceCallback/App.tsx): `coding-hooks/src/hooks/03-useDebounceCallback/App.tsx`
- [Toggle Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/04-useToggle/App.tsx): `coding-hooks/src/hooks/04-useToggle/App.tsx`
- [Interval Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/05-useInterval/App.tsx): `coding-hooks/src/hooks/05-useInterval/App.tsx`
- [Storage Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/06-useLocalStorage/App.tsx): `coding-hooks/src/hooks/06-useLocalStorage/App.tsx`
- [Fetch Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/07-useFetch/App.tsx): `coding-hooks/src/hooks/07-useFetch/App.tsx`
- [Throttle Demo](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-hooks/src/hooks/08-useThrottle/App.tsx): `coding-hooks/src/hooks/08-useThrottle/App.tsx`

### UI Examples

- [Accordion Example](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/accordion-app/src/App.tsx): `coding-projects/accordion-app/src/App.tsx`
- [Autocomplete Example](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/autocomplete-app/src/App.tsx): `coding-projects/autocomplete-app/src/App.tsx`
- [Carousel Example](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/carousel-app/src/App.tsx): `coding-projects/carousel-app/src/App.tsx`
- [Modal Example](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/react-modal/src/App.tsx): `coding-projects/react-modal/src/App.tsx`
- [Star Rating](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/star-rating/src/App.tsx): `coding-projects/star-rating/src/App.tsx`
- [Theme Switcher](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/theme-switcher/src/App.tsx): `coding-projects/theme-switcher/src/App.tsx`
- [Tree View](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/tree-view-app/src/App.tsx): `coding-projects/tree-view-app/src/App.tsx`

### Data Examples

- [User Table](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/data-table-app/src/App.tsx): `coding-projects/data-table-app/src/App.tsx`
- [User Service](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/data-table-app/src/services/userService.ts): `coding-projects/data-table-app/src/services/userService.ts`
- [Infinite Posts](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/infinite-scroll-app/src/components/InfinitePosts.tsx): `coding-projects/infinite-scroll-app/src/components/InfinitePosts.tsx`
- [Nested Comments](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/nested-comments/src/App.tsx): `coding-projects/nested-comments/src/App.tsx`
- [Shopping Cart](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/shopping-cart/src/App.tsx): `coding-projects/shopping-cart/src/App.tsx`
- [Todo App](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/todo-app/src/App.tsx): `coding-projects/todo-app/src/App.tsx`
- [Jobs Example](https://github.com/sudheerj/reactjs-interview-questions/blob/master/coding-projects/hacker-news-jobs/src/App.tsx): `coding-projects/hacker-news-jobs/src/App.tsx`

### Other components

- **Learner**

## Connections

- Learner → Exercise Browser: browses exercises
- Exercise Browser → Exercise Home: renders home (evidence: `coding-exercise/src/App.js`)
- Exercise Browser → Exercise Registry: selects exercise (evidence: `coding-exercise/src/App.js`)
- Exercise Home → Exercise Cards: renders cards (evidence: `coding-exercise/src/components/HomePage.js`)
- Learner → Hook Gallery: selects demo
- Hook Gallery → Previous Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Debounce Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Debounce Callback: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Toggle Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Interval Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Storage Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Hook Gallery → Fetch Demo: renders by selection (evidence: `coding-hooks/src/App.tsx`)
- Learner → Throttle Demo: tries demo
- Learner → Accordion Example: uses example
- Learner → Autocomplete Example: searches fruits (evidence: `coding-projects/autocomplete-app/src/App.tsx`)
- Learner → Carousel Example: uses example
- Learner → Modal Example: uses example
- Learner → Star Rating: uses example
- Learner → Theme Switcher: changes theme (evidence: `coding-projects/theme-switcher/src/App.tsx`)
- Learner → Tree View: uses example
- User Table → User Service: loads users (evidence: `coding-projects/data-table-app/src/App.tsx`)
- Learner → User Table: searches users (evidence: `coding-projects/data-table-app/src/App.tsx`)
- Learner → Infinite Posts: views posts
- Learner → Nested Comments: posts comments (evidence: `coding-projects/nested-comments/src/App.tsx`)
- Learner → Shopping Cart: manages cart (evidence: `coding-projects/shopping-cart/src/App.tsx`)
- Learner → Todo App: manages todos (evidence: `coding-projects/todo-app/src/App.tsx`)
- Learner → Jobs Example: views jobs
