CHAPTER 03

JSX Is Real React Code

Every subchapter in this chapter, free to read online. Work through them in order, or open the concept required by your current project.

03
chapter
6
subchapters
Free
online
01
Subchapter

Expressions Inside JSX

Evaluate JavaScript inside JSX, distinguish expressions from statements, and account for every value React can render or reject.

02
Subchapter

Attributes, Class Names, and Styles

Supply DOM props through JSX, apply stable CSS classes, use style objects for calculated values, and retain accessible HTML.

03
Subchapter

Fragments and Nested Trees

Group sibling React nodes without creating a DOM wrapper, then choose real semantic containers wherever the document needs one.

04
Subchapter

Arrays in JSX

Transform data arrays into React nodes with map and filter, preserve the source collection, and give empty results explicit UI.

05
Subchapter

Keys in the First List

Identify sibling list elements with stable data keys and avoid index or random keys that make React match the wrong instances.

06
Subchapter

Modern JavaScript Syntax in Components

Read the JavaScript syntax used in current React components without mistaking destructuring, spread, and optional access for React APIs.

Other chapters

4 more