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

This commit is contained in:
Daniel Lo Nigro
2014-01-04 23:33:02 -08:00
parent 6edc47aeae
commit 561bc9a26a

View File

@@ -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.