Logo
    Login
    Hackerspace
    • Learn
    • Colleges
    • Hackers
    Career
    • Jobs
    • Applications
    Profile
    • Login as Hacker
    Vercel Fanboys College

    React 101

    0 / 10 chapters0%
    Course Introduction
    Chapter 1
    Chapter 10
    Chapter 2
    Chapter 3
    Chapter 4
    Chapter 5
    Chapter 6
    Chapter 7
    Chapter 8
    Chapter 9
    1. React 101
    2. Chapter 2

    Chapter 2

    To understand how React works, we first need a basic understanding of how browsers interpret your code to create (or render) user interfaces (UI).

    When a user visits a web page, the server returns an HTML file to the browser that may look like this:

    Two side-by-side diagrams, left showing the HTML code, and right showing the DOMtree.

    The browser then reads the HTML and constructs the Document Object Model (DOM).

    What is the DOM?

    The DOM is an object representation of the HTML elements. It acts as a bridge between your code and the user interface, and has a tree-like structure with parent and child relationships.

    yo

    You can use DOM methods and JavaScript, to listen to user events and manipulate the DOM

    by selecting, adding,updating, and deleting specific elements in the user interface. DOM manipulation allows you to not only target specific elements, but also change their style and content.

    In the next section you'll learn how to use JavaScript and DOM methods.

    Additional Resources:

    • Introduction to the DOM
    • How to view the DOM in Google Chrome
    • How to view the DOM in Firefox
    Ready to move on?

    Mark this chapter as finished to continue

    Ready to move on?

    Mark this chapter as finished to continue

    LoginLogin to mark
    Chapter completed!
    NextGo to Next Chapter

    © 2025 Hacklab

    • Privacy
    • Terms