React JS Quiz
HomeBlogPrivacy PolicyContact UsTutorialsNewBuy me a coffee

JSX in React

  1. 1.What JSX Is
  2. 2.Embedding Values in JSX
  3. 3.Attributes and Styling
  4. 4.Fragments and Structure
  5. 🏁 End-of-tutorial quiz
Advertisement
Tutorials/Beginner/JSX in React

JSX in React

How JSX works, how to put JavaScript values inside markup, how attributes differ from HTML, and how fragments let you return several elements.

Level
Beginner
Chapters
4
Exercises
1
Reading time
14 min
Start the tutorial →

What you will cover

  1. 1. What JSX IsThe syntax extension that lets you write markup inside JavaScript, and what it compiles to.
  2. 2. Embedding Values in JSXCurly braces, which values render, and which quietly disappear.
  3. 3. Attributes and StylingWhy it is className not class, and how the style prop differs from a CSS string.
  4. 4. Fragments and StructureReturning several elements, self-closing tags and the rules JSX enforces.
Already know this? Jump to the 7 question quiz →

Up next after this one: Components and Props

Advertisement
Advertisement
Support the developer