Why react project running first time to show project folder name path? Don’t show Home path first run the project

When I run the react project by npm start in the project then the auto path is created project folder name.
For example http://localhost:3002/bug-palace

But after the run, it was supposed to do http://localhost:3002 shows.
When I clicked Home than show me the right home path http://localhost:3002

please solve the problem, anyone.

npm start (picture)

Auto geneat file name path (picture)

Home nav button click (picture)

After nav home button clicked than show home path (picture)

App.js file routing cod (picture) 1

App.js file routing cod (picture) 2

Source: React Router Questions

LEAVE A COMMENT