How React ROUTER works??

Hi guys, I am using Router for the first time in React, but I am having issues with it. First, I installed React-router-dom in the terminal by using this command here
npm install react-router-dom localforage match-sorter sort-by
npm install react-router-dom localforage match-sorter sort-by
...So, it should be working perfecty, but it doesn't. As you can see in the image below,should be appearing the message in the h1 tag. What can I do to solve this?
7 Replies
Monimolimnion
Monimolimnion•3y ago
Not a great answer but honestly at this point I'd switch to Next.js Avoid reinventing the wheel
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Sste
SsteOP•3y ago
It worked when I deleted the BrowserRouter from the main.jsx. But thanks anyway 🙃
vince
vince•3y ago
Next.js is a totally different use case, CSR vs SSR
Monimolimnion
Monimolimnion•3y ago
You can do CSR in Next...
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?