Fix import in example

This commit is contained in:
dan
2022-04-07 14:12:58 +01:00
committed by GitHub
parent 3e8c91c5f8
commit e8f4a6653d

View File

@@ -10,7 +10,7 @@ The `react` package contains only the functionality necessary to define React co
```js
import { useState } from 'react';
import { createRoot } from 'react-dom';
import { createRoot } from 'react-dom/client';
function Counter() {
const [count, setCount] = useState(0);