You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
id: faq-build
|
|
|
|
title: Babel, JSX, and Build Steps
|
|
|
|
permalink: docs/faq-build.html
|
|
|
|
layout: docs
|
|
|
|
category: FAQ
|
|
|
|
---
|
|
|
|
|
|
|
|
### Do I need to use JSX with React? {#do-i-need-to-use-jsx-with-react}
|
|
|
|
|
|
|
|
No! Check out ["React Without JSX"](/docs/react-without-jsx.html) to learn more.
|
|
|
|
|
|
|
|
### Do I need to use ES6 (+) with React? {#do-i-need-to-use-es6--with-react}
|
|
|
|
|
|
|
|
No! Check out ["React Without ES6"](/docs/react-without-es6.html) to learn more.
|
|
|
|
|
|
|
|
### How can I write comments in JSX? {#how-can-i-write-comments-in-jsx}
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div>
|
|
|
|
{/* Comment goes here */}
|
|
|
|
Hello, {name}!
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div>
|
|
|
|
{/* It also works
|
|
|
|
for multi-line comments. */}
|
|
|
|
Hello, {name}!
|
|
|
|
</div>
|
|
|
|
```
|