Skip to content

Commit

Permalink
Update React to v18
Browse files Browse the repository at this point in the history
Update migration guide to mention react resolutions from package.json


Contributed on behalf of STMicroelectronics
Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com>
  • Loading branch information
AlexandraBuzila committed Jul 26, 2022
1 parent 7563dd2 commit 8b56510
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ The `react` and `react-dom` dependencies were upgraded to version 18. Some relev
- the new API no longer supports render callbacks
- updates in promises, setTimeout, event handlers are automatically batched

Because the currently used version of `react-virtualized` still depends on React 16, a `resolutions` block is needed in the `package.json` for the React 18 dependencies:

```json
"resolutions": {
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6"
...
}
```

### v1.24.0

#### node-gyp 8.4.1
Expand Down

0 comments on commit 8b56510

Please sign in to comment.