As I import BrowserRouter from ‘react-router-dom’ my app stops working. I have attached the error. The error in index.js file but I haven’t touched i

×
TypeError: Object(…) is not a function
./node_modules/react-router/index.js
C:/devansh/React/routing-on-http–01-starting-setup/http–05-finished/node_modules/react-router/index.js:56
53 | */
54 |
55 |

56 | const NavigationContext = /#PURE/createContext(null);
57 |
58 | if (process.env.NODE_ENV !== “production”) {
59 | NavigationContext.displayName = “Navigation”;
View compiled