We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6546e2 commit 81539dcCopy full SHA for 81539dc
pages/docs/react/latest/rendering-elements.mdx
@@ -44,8 +44,8 @@ Here is a full example rendering our application in our `root` div:
44
// Dom access can actually fail. ResScript
45
// is really explicit about handling edge cases!
46
switch(ReactDOM.querySelector("#root")){
47
- | Some(root) => ReactDOM.render(<div> React.string("Hello Andrea") </div>, root)
48
- | None => () // do nothing
+| Some(root) => ReactDOM.render(<div> {React.string("Hello Andrea")} </div>, root)
+| None => () // do nothing
49
}
50
```
51
```js
0 commit comments