Skip to content

Commit

Permalink
Chore/react v18 (#500)
Browse files Browse the repository at this point in the history
* chore(react-v18): switch to @testing-library/react for better react v18 support

* docs(react-v18): use react v18 in README code examples
  • Loading branch information
plumdumpling authored Aug 7, 2023
1 parent 71bdf19 commit fbabb6d
Show file tree
Hide file tree
Showing 4 changed files with 867 additions and 468 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
Loading

0 comments on commit fbabb6d

Please sign in to comment.