mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Merge pull request #163 from charlottetan/fix/caveat-to-warning
Updating "caveat" to "warning"
This commit is contained in:
@@ -81,7 +81,7 @@ const element = <img src={user.avatarUrl}></img>;
|
||||
|
||||
Don't put quotes around curly braces when embedding a JavaScript expression in an attribute. You should either use quotes (for string values) or curly braces (for expressions), but not both in the same attribute.
|
||||
|
||||
>**Caveat:**
|
||||
>**Warning:**
|
||||
>
|
||||
>Since JSX is closer to JavaScript than HTML, React DOM uses `camelCase` property naming convention instead of HTML attribute names.
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user