mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Change “not allowed” back to “discouraged” since you technically *can* use props called class or for…
This commit is contained in:
@@ -106,7 +106,7 @@ See [Multiple Components](/react/docs/multiple-components.html) to learn more ab
|
|||||||
|
|
||||||
> Note:
|
> 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
|
> as XML attribute names. Instead, React DOM components expect attributes like
|
||||||
> `className` and `htmlFor`, respectively.
|
> `className` and `htmlFor`, respectively.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user