# Sage 10 with react 18

**URL:** https://discourse.roots.io/t/sage-10-with-react-18/24458
**Category:** bud
**Created:** 2022-12-25T20:10:32Z
**Posts:** 6
**Showing post:** 5 of 6

## Post 5 by @Turn — 2022-12-26T13:03:52Z

Thanks for your answer and your help. Sadly it doesn’t work for me, because I’m not adding the old `react-dom` version (`17.0.2`) directly over my package.json, I’m only loading the new version.

`npm explain react-dom` gives me the following output:

```
react-dom@18.2.0
node_modules/react-dom
  react-dom@"^18.2.0" from the root project
  peer react-dom@">=18" from react-abode@2.0.0
  node_modules/react-abode
    react-abode@"^2.0.0" from the root project
  peer react-dom@">=16.8.0" from react-animate-height@3.1.0
  node_modules/react-animate-height
    react-animate-height@"^3.1.0" from the root project

react-dom@17.0.2 dev
node_modules/@roots/bud-react/node_modules/react-dom
  react-dom@"17.0.2" from @roots/bud-react@6.6.6
  node_modules/@roots/bud-react
    @roots/bud-react@"6.6.6" from @roots/bud-preset-wordpress@6.6.6
    node_modules/@roots/bud-preset-wordpress
      @roots/bud-preset-wordpress@"6.6.6" from @roots/sage@6.6.6
      node_modules/@roots/sage
        dev @roots/sage@"6.6.6" from the root project
    peerOptional @roots/bud-react@"*" from @roots/sage@6.6.6
    node_modules/@roots/sage
      dev @roots/sage@"6.6.6" from the root project
  peer react-dom@"^15.0.0 || ^16.0.0 || ^17.0.0" from react-hot-loader@4.13.1
  node_modules/@roots/bud-react/node_modules/react-hot-loader
    react-hot-loader@"^4.13.1" from @roots/bud-react@6.6.6
    node_modules/@roots/bud-react
      @roots/bud-react@"6.6.6" from @roots/bud-preset-wordpress@6.6.6
      node_modules/@roots/bud-preset-wordpress
        @roots/bud-preset-wordpress@"6.6.6" from @roots/sage@6.6.6
        node_modules/@roots/sage
          dev @roots/sage@"6.6.6" from the root project
      peerOptional @roots/bud-react@"*" from @roots/sage@6.6.6
      node_modules/@roots/sage
        dev @roots/sage@"6.6.6" from the root project
```

I cannot change the `react-dom@17.0.2` reference because it is implicitly loaded from another package. (bud-react) Do you have any other idea?

---

_[View the full topic](https://discourse.roots.io/t/sage-10-with-react-18/24458)._
