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 3a44ce3 commit 96729bdCopy full SHA for 96729bd
contributors.yml
@@ -169,3 +169,4 @@
169
- xavier-lc
170
- xcsnowcity
171
- yuleicul
172
+- LordThi
docs/router-components/browser-router.md
@@ -27,14 +27,15 @@ A `<BrowserRouter>` stores the current location in the browser's address bar usi
27
28
```tsx
29
import * as React from "react";
30
-import * as ReactDOM from "react-dom";
+import { createRoot } from 'react-dom/client';
31
import { BrowserRouter } from "react-router-dom";
32
33
-ReactDOM.render(
+const root = createRoot(document.getElementById('root'));
34
+
35
+root.render(
36
<BrowserRouter>
37
{/* The rest of your app goes here */}
- </BrowserRouter>,
- root
38
+ </BrowserRouter>
39
);
40
```
41
0 commit comments