mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
843 B
843 B
id, title, permalink, prev, next
| id | title | permalink | prev | next |
|---|---|---|---|---|
| special-non-dom-attributes | Special Non-DOM Attributes | special-non-dom-attributes.html | dom-differences.html | reconciliation.html |
Beside DOM differences, React offers some attributes that simply don't exist in DOM.
key: an optional, unique identifier. When your component shuffles around duringrenderpasses, it might be destroyed and recreated due to the diff algorithm. Assigning it a key that persists makes sure the component stays. See more here.ref: see here.dangerouslySetInnerHTML: Provides the ability to insert raw HTML, mainly for cooperating with DOM string manipulation libraries. See more here.