reagent/doc/FAQ/MyAttributesAreMissing.md

18 lines
553 B
Markdown
Raw Normal View History

2018-02-12 23:46:51 +00:00
### Question
Why isn't my attribute `xyz` showing up on <some-element>? (where is `xyz` is something like `autoFocus`)
### Answer
2018-02-13 05:06:50 +00:00
You might be spelling it incorrectly.
2018-02-12 23:46:51 +00:00
2018-02-13 05:05:51 +00:00
React supports [camelCased HTML attributes](https://reactjs.org/docs/dom-elements.html#all-supported-html-attributes),
but the equivalent in Reagent is dashed and lower cased.
For example, with Reagent, you use `auto-focus`, instead of `autoFocus`. And
you use `col-span` instead of React's `colSpan`.
2018-02-12 23:46:51 +00:00
***
Up: [FAQ Index](../README.md)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;