mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix dangerouslySetInnerHTML
This commit is contained in:
committed by
Paul O’Shannessy
parent
267c97b14f
commit
376045b401
@@ -55,7 +55,7 @@ You can use mixed arrays with strings and JSX elements.
|
||||
As a last resort, you always have the ability to insert raw HTML.
|
||||
|
||||
```javascript
|
||||
<div dangerouslySetInnerHTML={{__html: 'First · Second'}} />
|
||||
<div dangerouslySetInnerHTML={{'{{'}}__html: 'First · Second'}} />
|
||||
```
|
||||
|
||||
## Comments
|
||||
|
||||
Reference in New Issue
Block a user