'Warning: Cannot update a component (`BrowserRouter`) while rendering a different component
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:1493:130)
at div
at Login (http://localhost:3000/static/js/bundle.js:1004:81)
at Routes (http://localhost:3000/static/js/bundle.js:57461:5)
at div
at App
at Router (http://localhost:3000/static/js/bundle.js:57394:15)
at BrowserRouter (http://localhost:3000/static/js/bundle.js:56203: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 |
|---|
