diff --git a/package.json b/package.json index 038bca2..816b8a7 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ ], "version": "1.1.0", "peerDependencies": { - "react": "^16.13.1", - "react-dom": "^16.13.1" + "react": "^16.13.1 || ^18.0.0", + "react-dom": "^16.13.1 || ^18.0.0" }, "scripts": { "test": "yarn type-check && yarn lint", @@ -56,7 +56,7 @@ "@storybook/addon-essentials": "6.0.21", "@storybook/addons": "6.0.21", "@storybook/react": "6.0.21", - "@types/react-dom": "16.9.8", + "@types/react-dom": "18.2.4", "@typescript-eslint/eslint-plugin": "4.1.1", "babel-loader": "8.1.0", "eslint": "7.9.0", diff --git a/yarn.lock b/yarn.lock index 67df86a..326ec69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2684,10 +2684,10 @@ "@types/react" "*" "@types/reactcss" "*" -"@types/react-dom@16.9.8": - version "16.9.8" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.8.tgz#fe4c1e11dfc67155733dfa6aa65108b4971cb423" - integrity sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA== +"@types/react-dom@18.2.4": + version "18.2.4" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.4.tgz#13f25bfbf4e404d26f62ac6e406591451acba9e0" + integrity sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw== dependencies: "@types/react" "*"