skip to Main Content

Reactjs – How to make an endless route?

How to make an endless route? I have an unknown nesting, following which we need to display it in the route, for example Folder url.com/folder -Child 1 url.com/folder/child1 --Child 2 url.com/folder/child1/child2 ---Child 3 url.com/folder/child1/child2/child3 ---- Child 4 url.com/folder/child1/child2/child3/child4 ... <Route…

VIEW QUESTION

Javascript – Why is React Router not routing to a nested route?

I am using react-router-dom version 6.11.2 for my front-end routing in my App.js file: import "./App.css"; import { Route, RouterProvider, createBrowserRouter, createRoutesFromElements, } from "react-router-dom"; import RootLayout from "./layouts/RootLayout"; import { UserContextProvider } from "./store/user-context"; import NotFound404 from "./components/Utility/NotFound404"; import…

VIEW QUESTION

Html – How to solve ReactRouterDOM is not defined error?

I keep getting the ReactRouterDOM error but I am following a tutorial and my professor is not getting this error (video may be outdated). index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Routing</title> <!-- Load Babel --> <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> </head>…

VIEW QUESTION
Back To Top
Search