Open dmitri-minkin opened 1 year ago
Looking into other issues I notice that React 18 is a known problem.
May be at least we can mention in contributing.md the step to revert the dependency of use-http-sandbox to React 17 for react and react-dom in package.json ?
see for example the steps in create-react-app/issues/12269
Should be updated with React 18 now
Describe the bug Following instructions in .github/contributing.md fails when using the latest React 18.
⚠️ Make a Codesandbox ⚠️ Not relevant
To Reproduce Steps to reproduce the behavior:
useFetch
.npm run start
Notice the error:
Expected behavior The app should show the UI and not fail with error.
Possible reasons
There is a mismatch between dependency versions requirements for react and react-dom in use-http vs use-http-sandbox.
use-http-sandbox needs React and react-dom 18 while use-http depends on urs that depends on react-dom@"^16.13.1 || ^17.0.0"
this is also visible when running command in use-http folder:
npm link ../use-http-sandbox/node_modules/react