We want to hear from you!Take our 2021 Community Survey!
This documentation is for React 17.Go to the latest docs.

Babel, JSX, and Build Steps

Do I need to use JSX with React?

No! Check out “React Without JSX” to learn more.

Do I need to use ES6 (+) with React?

No! Check out “React Without ES6” to learn more.

How can I write comments in JSX?

<div>
  {/* Comment goes here */}
  Hello, {name}!
</div>
<div>
  {/* It also works 
  for multi-line comments. */}
  Hello, {name}! 
</div>
Is this page useful?Edit this page