Skip to content

Commit 123ecb5

Browse files
authored
Merge pull request #229 from vishnugopal/patch-1
Small docfix
2 parents a4bd70e + 81539dc commit 123ecb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/react/latest/rendering-elements.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Here is a full example rendering our application in our `root` div:
4444
// Dom access can actually fail. ResScript
4545
// is really explicit about handling edge cases!
4646
switch(ReactDOM.querySelector("#root")){
47-
| Some(root) => ReactDOM.render(<div> React.string("Hello Andrea") </div>, root)
48-
| None => () // do nothing
47+
| Some(root) => ReactDOM.render(<div> {React.string("Hello Andrea")} </div>, root)
48+
| None => () // do nothing
4949
}
5050
```
5151
```js

0 commit comments

Comments
 (0)