wsmd / react-use-form-state

📄 React hook for managing forms and inputs state
http://react-use-form-state.now.sh
MIT License
936 stars 55 forks source link

Unable to install with react's latest version react ^17.0.2 #158

Open shivamsahni opened 3 years ago

shivamsahni commented 3 years ago

When I am trying to install using following command: npm i react-use-form-state

It gives following error: Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from react-use-form-state@0.13.2 npm ERR! node_modules/react-use-form-state

rijk commented 1 year ago

From NPM v8, you can fix this by overriding in package.json:

"overrides": {
  "react-use-form-state": {
    "react": "*",
    "react-dom": "*"
  }
},