Browse Source

Change “not allowed” back to “discouraged” since you technically *can* use props called `class` or `for`…

main
Daniel Lo Nigro 11 years ago
parent
commit
561bc9a26a
  1. 2
      docs/02.1-jsx-in-depth.md

2
docs/02.1-jsx-in-depth.md

@ -106,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 not allowed
> Since JSX is JavaScript, identifiers such as `class` and `for` are discouraged
> as XML attribute names. Instead, React DOM components expect attributes like
> `className` and `htmlFor`, respectively.

Loading…
Cancel
Save