Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-react

What is React?

Last reviewed May 28, 2026 Content v20260528
Track mode
client_react
Means
In-browser React TSX
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is React?: the concepts, APIs, and habits you need before advancing in React.

Without What is React?, you will struggle to read or extend React codebases and playground exercises.

You will apply What is React? in contexts like: SPAs, dashboards, design-system-driven products, and React Native mobile apps.

Write TypeScript/TSX, click Run in browser—React 18 loads from CDN, JSX compiles in the tab, UI renders in the preview root, and printOutput feeds the terminal.

After solid JavaScript—and ideally TypeScript—before starting the react track.

React is not a full framework like Angular. It is a UI library: you bring your own router, data layer, and build tooling—or adopt meta-frameworks like Next.js after this track.

Core ideas

  • Components — reusable functions (or classes) that return UI descriptions
  • Declarative rendering — you return JSX; React reconciles it with the DOM
  • One-way data flow — props flow down; events and callbacks flow up
  • Hooks — functions like useState and useEffect add state and lifecycle to function components

Compared to jQuery or vanilla JS

Vanilla code often reads: “find this button, attach listener, find that div, set innerHTML.” React reads: “when count is 3, render this markup.” The state is the source of truth; the UI follows.

Important interview questions and answers

  1. Q: Is React a framework or a library?
    A: A library focused on the view layer. Routing, global state, and data fetching are typically separate choices.
  2. Q: What is the Virtual DOM?
    A: An in-memory representation React compares between renders to compute minimal DOM updates—not a second DOM you manipulate directly.
  3. Q: Why is React popular?
    A: Component model, large ecosystem, strong hiring demand, React Native for mobile, and mature patterns for complex UIs.

Self-check

  1. Name two things React gives you that raw document.querySelector does not.
  2. What does “one-way data flow” mean in one sentence?

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Library vs framework—your definition?
  • Where would you not pick React?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump