liveBook · Manning

JSX

Also called JavaScript XML

JSX is a JavaScript syntax extension for expressing user-interface elements with XML-like or HTML-like markup that is transformed into JavaScript.

How 9 Manning books explain it

React Quickly, Second Edition

JSX is a JavaScript syntax extension that expresses React elements with HTML-like notation and is compiled into JavaScript.

How it is used
Uses HTML-like notation to write readable React elements and components inside JavaScript.
How deep it goes
Works through element creation and syntax pitfalls while leaving manual transpiler configuration optional.
Examples
Compares nested JSX with React.createElement and builds greetings, links, and dynamic component content.
What you can do after
Apply it via Create React App to compose components with dynamic content without configuring JSX transpilation.

Read how React Quickly, Second Edition explains JSX →

Acing the Frontend Interview

JSX is a JavaScript syntax extension that represents UI elements with XML-like markup.

How it is used
Uses JSX to express React component structure and state-dependent UI in declarative-UI interview explanations.
How deep it goes
Moves from HTML-like markup to expressions, loops, and conditions, while naming fragments and portals without detailing their implementation.
Examples
Contrasts a mapped JSX list with manual DOM creation and pairs nested markup with its element-object representation.
What you can do after
Apply it via React to describe UI elements and distinguish JSX’s readability from React’s DOM-update process.

Read how Acing the Frontend Interview explains JSX →

Essential TypeScript 5, Third Edition

A JSX class is a class whose implementation contains JSX elements that are transformed into standard JavaScript.

How it is used
Uses JSX to generate web-application content without assembling every HTML element through DOM API statements.
How deep it goes
Works through compiler transformation, a minimal DOM factory, and class composition; distinguishes that factory from framework handling of dynamic content.
Examples
Shows a product-count heading, a DOM-backed factory, and category buttons composed into a product list.
What you can do after
Build it from scratch with a minimal factory, then compose JSX classes and insert their returned elements into a page.

Read how Essential TypeScript 5, Third Edition explains JSX →

Secrets of the JavaScript Ninja, Third Edition

JSX is a syntax extension that lets developers write XML-like markup within JavaScript code.

How it is used
Combines JavaScript and HTML-like markup to define UI values and render interactive, state-based components.
How deep it goes
Explains markup-to-object compilation and React's state-driven DOM updates, including virtual-DOM reconciliation.
Examples
Uses a link compiled to a runtime call and an event-list component that adds keydown events to state.
What you can do after
Build interactive React components that render state as DOM without directly managing DOM operations.

Read how Secrets of the JavaScript Ninja, Third Edition explains JSX →

Building User-Friendly DSLs

A JavaScript syntax extension that permits XML-like markup to be embedded in JavaScript expressions.

How it is used
Uses JSX to render an editable-looking projection of DSL AST content for domain experts.
How deep it goes
Explains syntax, attributes, embedded expressions, mapping, recursion, and concept dispatch, but defers broader React and DOM details.
Examples
Uses Projection components, Rental record types, AST attributes, embedded expressions, CSS classes, and recursive array mapping.
What you can do after
Builds a React JSX projection that renders AST data and passes nested values through component attributes.

Read how Building User-Friendly DSLs explains JSX →

Web Component Development with Modern Libraries and Tooling

A JavaScript syntax extension that represents user-interface markup within source code and is transformed by a compiler.

How it is used
Describes rendered HTML in Stencil components and permits typed custom-element markup in React apps.
How deep it goes
Shows a worked render method and React declarations, but stops short of compiler transformation internals.
Examples
Uses a radio-group render method with mapped inputs and a React declaration for radio-group and hello-world elements.
What you can do after
Apply it via Stencil render methods and React TypeScript declarations for custom elements.

Read how Web Component Development with Modern Libraries and Tooling explains JSX →

React Hooks in Action: With Suspense and Concurrent Mode

JSX is a JavaScript syntax extension for describing user-interface elements with an HTML-like notation.

How it is used
Describes React interfaces by combining HTML-like UI structure with JavaScript and reusable components.
How deep it goes
Defines JSX and its preprocessing, then explicitly defers further exploration.
Examples
Uses a quiz interface with reusable TextToggle components for questions and answers.
What you can do after
Apply it via Babel to describe reusable React interfaces with component props.

Read how React Hooks in Action: With Suspense and Concurrent Mode explains JSX →

Build a Frontend Web Framework (From Scratch)

A JavaScript syntax extension that allows markup-like expressions to be written in JavaScript code.

How it is used
Uses JavaScript-based markup expressions to define component views and conditional interface content.
How deep it goes
Defines JSX as a JavaScript extension and demonstrates conditional syntax, but stops short of explaining its compilation internals.
Examples
Uses a hasDiscount expression that conditionally renders a paragraph.
What you can do after
Evaluate JSX as a component-view syntax and recognize its conditional-rendering pattern.

Read how Build a Frontend Web Framework (From Scratch) explains JSX →

D3.js in Action, Third Edition

JSX is a JavaScript syntax extension for expressing user-interface markup within JavaScript code.

How it is used
Expresses React component markup and connects application state to visible interface output.
How deep it goes
Defines functional-component returns, conditional expressions, and props, but does not explain JSX implementation internals.
Examples
Demonstrates App.js rendering Loading... conditionally, then rendering Charts with fetched data.
What you can do after
Build it from scratch by writing a React component that conditionally renders interface elements and passes data through props.

Read how D3.js in Action, Third Edition explains JSX →

Also covered in

What to know first

Related concepts

Questions about JSX

What is JSX?

JSX is a JavaScript syntax extension for expressing user-interface elements with XML-like or HTML-like markup that is transformed into JavaScript.

Which Manning books explain JSX?

React Quickly, Second Edition, Acing the Frontend Interview, Essential TypeScript 5, Third Edition, Secrets of the JavaScript Ninja, Third Edition, Building User-Friendly DSLs, Web Component Development with Modern Libraries and Tooling, React Hooks in Action: With Suspense and Concurrent Mode, Build a Frontend Web Framework (From Scratch) and 1 more.

What should I know before learning JSX?

Manning books that teach JSX usually introduce JavaScript, HTML, Document Object Model and CSS first.

What is JSX a kind of?

JSX is a kind of JavaScript. JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.

What is JSX also called?

JSX is also called JavaScript XML.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.