Upon having a look at the URL of my react app I saw this very peculiar ending.
http://localhost:3001/?firstName=&gender=female#
Would anyone have an idea of what that is?
CodePudding user response:
It's URL search params, window.location.search
,read that https://developer.mozilla.org/en-US/docs/Web/API/Location/search
CodePudding user response:
Your React application probably contains a HTMLFormElement
.
By default, when submitting the form sends the form data to the target
. When this attribute is not set, it will send the form data to the current page. Which is http://localhost:3000
in your case.