Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Challenge Solutions #5535

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix for ReactDOM.createRoot() example
  • Loading branch information
chalder committed Jan 5, 2023
commit 69727137ba0d341c65cbbb6070252d01929ea425
2 changes: 1 addition & 1 deletion beta/src/content/reference/react-dom/client/createRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Call `createRoot` to create a React root for displaying content inside a browser

```js
const domNode = document.getElementById('root');
const root = createRoot(domNode);
const root = ReactDOM.createRoot(domNode);
```

React will create a root for the `domNode`, and take over managing the DOM inside it. After you've created a root, you need to call [`root.render`](#root-render) to display a React component inside of it:
Expand Down