Skip to content

Tag: react-router

React router v6, group routes by feature

I am using React router v6. THE PROBLEM: my App.tsx is very big as it includes routes for all of the application: Ex. I would like to group these routes by feature so that I end up having something like this: it would look cleaner and easier to read. So far I have created something like this for the Admin

Adding Base URL in react.js project is not working

I want to add the base URL to my react.js project. However I had tried couple of methods that did not work. For example, if my project url is : It should appear in address bar as : Below is my project code. index.js App.js What I had tried? As I referred in stackoverflow and also many other websites, integrat…

react components not rendering with routes

I am using the latest version of react router. When I am using routes in my component, They are not rendering anything but When I remove the routes and use simply the component they are working fine. Not able to understand what is going wrong This do not work and is not rendering anything on “/” o…