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:
|
||||
>
|
||||
> 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user