Skip to content

Commit

Permalink
docs(react-v18): use react v18 in README code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdumpling committed Aug 4, 2023
1 parent e15fad2 commit 4a0da64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Same effect as hitting `enter` (will geocode the text inside of the input).

```jsx
import React, {useRef} from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import Geosuggest from 'react-geosuggest';

const App = () => {
Expand Down Expand Up @@ -386,7 +386,9 @@ const App = () => {
);
};

ReactDOM.render(<App />, document.getElementById('app'));
const container = document.getElementById('app');
const root = ReactDOM.createRoot(container!);
root.render(<App />);
```

## Styling
Expand Down

0 comments on commit 4a0da64

Please sign in to comment.