Browse Source

Merge pull request #3419 from xmo-odoo/patch-1

Link to inserting raw HTML document
main
Paul O’Shannessy 10 years ago
parent
commit
d6cc34e4bf
  1. 2
      docs/02.3-jsx-gotchas.md

2
docs/02.3-jsx-gotchas.md

@ -46,7 +46,7 @@ You can use mixed arrays with strings and JSX elements.
<div>{['First ', <span>&middot;</span>, ' Second']}</div> <div>{['First ', <span>&middot;</span>, ' Second']}</div>
``` ```
As a last resort, you always have the ability to [insert raw HTML](/react/docs/dom-differences.html). As a last resort, you always have the ability to [insert raw HTML](/react/tips/dangerously-set-inner-html.html).
```javascript ```javascript
<div dangerouslySetInnerHTML={{'{{'}}__html: 'First &middot; Second'}} /> <div dangerouslySetInnerHTML={{'{{'}}__html: 'First &middot; Second'}} />

Loading…
Cancel
Save