Skip to content

Commit

Permalink
Fix import in example
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and zhengjitf committed Apr 15, 2022
1 parent 66fb237 commit d6e01fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6e01fe

Please sign in to comment.