'I'm not getting this warning. I was trying to do a react inventory management website. How can I solve this?? this warning is given below
react-dom.development.js:86 Warning: Cannot update a component (BrowserRouter) while rendering a different component (SocialLogin). To locate the bad setState() call inside SocialLogin, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
at SocialLogin (http://localhost:3000/static/js/bundle.js:3002:130)
at div
at div
at div
at div
at Login (http://localhost:3000/static/js/bundle.js:2182:65)
at Routes (http://localhost:3000/static/js/bundle.js:82509:5)
at div
at App
at Router (http://localhost:3000/static/js/bundle.js:82442:15)
at BrowserRouter (http://localhost:3000/static/js/bundle.js:81251:5)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
