Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 376045b

Browse files
vjeuxzpao
authored andcommitted
Fix dangerouslySetInnerHTML
1 parent 267c97b commit 376045b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/jsx-is-not-html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You can use mixed arrays with strings and JSX elements.
5555
As a last resort, you always have the ability to insert raw HTML.
5656

5757
```javascript
58-
<div dangerouslySetInnerHTML={{__html: 'First &middot; Second'}} />
58+
<div dangerouslySetInnerHTML={{'{{'}}__html: 'First &middot; Second'}} />
5959
```
6060

6161
## Comments

0 commit comments

Comments
 (0)