|
|
@ -58,7 +58,9 @@ var app = Nav({color:"blue"}, Profile(null, "click")); |
|
|
|
``` |
|
|
|
|
|
|
|
Use the [JSX Compiler](/react/jsx-compiler.html) to try out JSX and see how it |
|
|
|
desugars into native JavaScript. |
|
|
|
desugars into native JavaScript, and the |
|
|
|
[HTML to JSX converter](/react/html-jsx.html) to convert your existing HTML to |
|
|
|
JSX. |
|
|
|
|
|
|
|
If you want to use JSX, the [Getting Started](/react/docs/getting-started.html) guide shows |
|
|
|
how to setup compilation. |
|
|
@ -104,7 +106,7 @@ See [Multiple Components](/react/docs/multiple-components.html) to learn more ab |
|
|
|
|
|
|
|
> Note: |
|
|
|
> |
|
|
|
> Since JSX is JavaScript, identifiers such as `class` and `for` are discouraged |
|
|
|
> Since JSX is JavaScript, identifiers such as `class` and `for` are not allowed |
|
|
|
> as XML attribute names. Instead, React DOM components expect attributes like |
|
|
|
> `className` and `htmlFor`, respectively. |
|
|
|
|
|
|
|