nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

react/JSX

Syntax that looks like HTML but compiles down to plain JavaScript function calls.

10 QuestionsIntermediateHigh Priority ~10 min read

JSX isn't HTML, even though it looks like it. It's syntactic sugar that a compiler (Babel, or the framework's built-in tooling) transforms into plain JavaScript calls that produce React elements — plain objects describing what should appear on screen, not actual DOM nodes. Writing <div>Hello</div> is really just a more readable way of writing a function call that returns { type: 'div', props: { children: 'Hello' } }.

Because JSX compiles to function calls, it inherits JavaScript's rules, not HTML's — attributes are camelCase (onClick, not onclick), class becomes className since class is a reserved word, and anything inside {} is evaluated as a JavaScript expression, not a string. Every JSX block also has to return a single root node, which is why Fragments (<>...</>) exist — a way to group elements without adding an extra wrapper div to the actual DOM.

What you'll walk away knowing

What JSX actually compiles to, and why it isn't HTML despite the visual similarity
Why every JSX block needs a single root element or Fragment
Key syntax differences from HTML: className, camelCase event handlers, {} for expressions
What the newer JSX transform (React 17+) changed about needing to import React in every file
1What is a React Fragment?Intermediate2What is JSX?Intermediate3What is conditional rendering in React?Beginner
All Topics
1
Basics
JSX
State and Props
Components
Function Components
2
Virtual DOM
Reconciliation
Class Components
Lifecycle functions
3
Hooks
useState
useReducer
useMemo
useContext
useCallback
useEffect
Custom Hooks
New Hooks
4
Code Sharing
HOC
Refs
Data Sharing
Events
Context API
5
Redux
Router
CSR-SSR
React APIs
ReactDOM
Strict Mode
6
Performance Optimisation
Security
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.