liveBook · Manning

HTML

As explained in React in Depth

HTML is the standard markup language for structuring documents and controls displayed by web browsers.

HTML structures the document that web applications display and manipulate. Modern React applications define that structure inside JavaScript through JSX rather than maintaining HTML as an entirely separate artifact. section 7.1

Treat HTML as part of an interconnected application surface:

  • Classic web development keeps HTML, CSS, and JavaScript largely independent. section 7.1
  • React places HTML-like structure inside JavaScript with JSX, keeping document structure and application logic synchronized. section 7.1
  • Changing HTML without updating its CSS can produce visual defects or unusable interfaces, motivating component-oriented styling approaches. section 7.1

HTML inside a React component

A React component can define its document structure with JSX and keep related behavior in the same JavaScript application. CSS-in-JS extends this consolidation by colocating styling with the component when separate HTML, CSS, and JavaScript workflows create friction. section 7.1

Figure 7.1 In classic web development, the three technologies are developed more or less independently. But in modern web development, either HTML alone or HTML and CSS gets bundled with the JavaScript, as the JavaScript is the main protagonist of our web application narratives.
figure

Compare independent HTML, CSS, and JavaScript development with modern applications that bundle HTML, or HTML and CSS, into JavaScript. section 7.1

How React in Depth covers it

How deep it goes
Explains HTML's relationship with CSS, JavaScript, React, and JSX but stops short of syntax, semantics, and browser internals.
Examples
Uses JSX components, independently maintained web technologies, and CSS-in-JS as contrasting organization patterns.
What it assumes
Assumes familiarity with web development and introduces HTML's integration with JavaScript through React and JSX.
What you can do after
Evaluate/understand when HTML should remain separate or become colocated with JavaScript and styling in component-based applications.
How it connects
Connects HTML to CSS, JavaScript, React, JSX, and CSS-in-JS.

Also explained in

Compare how 12 books explain HTML →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of React in Depth. The section links point to the parts of the book it draws on.