# greatfrontend/top-reactjs-interview-questions architecture

> Architecture diagram of the GitHub repository greatfrontend/top-reactjs-interview-questions, 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/greatfrontend/top-reactjs-interview-questions
- Repository: https://github.com/greatfrontend/top-reactjs-interview-questions

## Overview

This repository is a curated React interview-question resource, not a React application or library. A reader uses the README’s table of contents and answers to explore topics, with detailed answers linked to GreatFrontEnd. The generator collects featured English summaries and metadata from question directories and rewrites the README sections. Topic nodes group related content rather than representing runtime services; the sampled source shows generator behavior, while the README establishes the resource’s broader topic coverage.

Main entry points: [`scripts/gen.ts`](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/gen.ts) (README generator), [`README.md`](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/README.md) (Question index and answers), [`questions`](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions) (Question source content), [`scripts/types.ts`](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/types.ts) (Question data types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Question catalog"]
  node_readme["Question index and answers<br/>[README.md]"]
  node_fundamentals["React fundamentals"]
end

subgraph group_state["State and components"]
  node_state_hooks["State and Hooks"]
  node_component_patterns["Component patterns"]
end

subgraph group_rendering["Rendering and performance"]
  node_reconciliation["Reconciliation and Fiber"]
  node_server_rendering["SSR and hydration"]
  node_performance["Performance and splitting"]
end

subgraph group_architecture["Application architecture"]
  node_async_data["Async data loading"]
  node_state_architecture["State architecture"]
  node_debugging_testing["Debugging and testing"]
end

subgraph group_content["Content generation"]
  node_question_source["Question source content"]
  node_generator["README generator<br/>[gen.ts]"]
  node_types["Question data types<br/>[types.ts]"]
end

node_reader(("Interview learner"))
node_greatfrontend(("GreatFrontEnd"))

node_reader -->|"browses"| node_readme
node_readme -->|"links to details"| node_greatfrontend
node_generator -->|"reads summaries"| node_question_source
node_generator -->|"rewrites sections"| node_readme
node_generator -->|"uses types"| node_types

click node_readme "https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/README.md"
click node_fundamentals "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_state_hooks "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_component_patterns "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_reconciliation "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_server_rendering "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_performance "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_async_data "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_state_architecture "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_debugging_testing "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_question_source "https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions"
click node_generator "https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/gen.ts"
click node_types "https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/types.ts"

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_readme,node_fundamentals,node_reader,node_greatfrontend toneBlue
class node_state_hooks,node_component_patterns toneAmber
class node_reconciliation,node_server_rendering,node_performance toneMint
class node_async_data,node_state_architecture,node_debugging_testing toneRose
class node_question_source,node_generator,node_types toneIndigo
```

## Components

### Question catalog

- [Question index and answers](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/README.md): `README.md`
- [React fundamentals](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`

### State and components

- [State and Hooks](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [Component patterns](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`

### Rendering and performance

- [Reconciliation and Fiber](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [SSR and hydration](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [Performance and splitting](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`

### Application architecture

- [Async data loading](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [State architecture](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [Debugging and testing](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`

### Content generation

- [Question source content](https://github.com/greatfrontend/top-reactjs-interview-questions/tree/main/questions): `questions`
- [README generator](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/gen.ts): `scripts/gen.ts`
- [Question data types](https://github.com/greatfrontend/top-reactjs-interview-questions/blob/main/scripts/types.ts): `scripts/types.ts`

### Other components

- **Interview learner**
- **GreatFrontEnd**

## Connections

- Interview learner → Question index and answers: browses (evidence: `README.md`)
- Question index and answers → GreatFrontEnd: links to details (evidence: `README.md`)
- README generator → Question source content: reads summaries (evidence: `scripts/gen.ts`)
- README generator → Question index and answers: rewrites sections (evidence: `scripts/gen.ts`)
- README generator → Question data types: uses types (evidence: `scripts/gen.ts`)
