create areact app with material UI frontend folder first their craete components and…
- User
create areact app with material UI frontend folder first their craete components and pages in the src directory ....using materil UI create a dashboard having a navbar and collapsable side navabar having 6 filds and a App name on the navabr
- Assistant
- User
- Assistant
- User
RROR in ./src/components/Sidebar.js 7:0-53 Module not found: Error: Can't resolve 'react-router-dom' in 'C:\Users\Administrator\Desktop\dshboard\my-legal-portal\src\components'
- Assistant
The error you're encountering indicates that the
react-router-domlibrary is not installed in your project. This library is necessary for routing in a React application, especially since you are using it in your for linking between different pages. - User
ERROR useLocation() may be used only in the context of a component. at invariant (http://localhost:3001/static/js/bundle.js:37656:11) at useLocation (http://localhost:3001/static/js/bundle.js:41208:3) at Sidebar (http://localhost:3001/static/js/bundle.js:54246:81) at react-stack-bottom-frame (http://localhost:3001/static/js/bundle.js:34648:18) at renderWithHooks (http://localhost:3001/static/js/bundle.js:25965:20) at updateFunctionComponent (http://localhost:3001/static/js/bundle.js:27234:17) at beginWork (http://localhost:3001/static/js/bundle.js:27852:16) at runWithFiberInDEV (http://localhost:3001/static/js/bundle.js:23193:14) at performUnitOfWork (http://localhost:3001/static/js/bundle.js:30437
- Assistant