hello everyone ,
i need help in the routing as i am working in the react project where i have to made admin panel, now i ahve done rbac and authguard as well, but the problem is i m defining routes for all my pages , like /dashboard, /pages, and all the pages have layout, so whenever i change the route my layout render , whihc i dont want , in the layout i have sidebar, header and for the content its tables , soo i want to do nested routing so that whenever user change the route from the sidebar only the content change, i dont want to rerender the sidebar and header again and agian , i am realy struggling in routing as i find it difficult to implement it , if someone could explain me on zoom call
#Routing
6 messages · Page 1 of 1 (latest)
Hi @random atlas, could you provide a link to your code? It's hard to help without seeing the code.
But, I'll try anyway! I've created a scrim for you – or rather Scrimba.com has created it for me. I selected React & React Router as the template which generates a scrim with the basic setup, including nested routes. Check it out and see if that helps 🙂
https://scrimba.com/scrim/c7BVK3HZ
thanks a lot for your help
i will share the code with you soon as i cant share the repo on which i am working, i will make a demo project like that and then i will share the link
if you are free we can schedule a zoom meeting and discuss the issue , if its okay with you
i saw your scrim its really awesome and its alomost solved my problem, now i only need to implment protected routes and rbac , i will try and if successfull than share the scrim with you