Browse Source

Updating "caveat" to "warning"

Updating "caveat" to "warning" as suggested in #155
main
Charlotte Tan 7 years ago
committed by GitHub
parent
commit
7238d4244e
  1. 2
      content/docs/introducing-jsx.md

2
content/docs/introducing-jsx.md

@ -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. 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. >Since JSX is closer to JavaScript than HTML, React DOM uses `camelCase` property naming convention instead of HTML attribute names.
> >

Loading…
Cancel
Save