Replies: 1 comment 4 replies
-
I don't get why |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
Is it possible to get the protocol and domain name via react-router?
I've tried several things, from useLocation to useHistory, without any luck.
For reference, what I'm looking for is the equivalent of this:
window.location.hostname
Or this:
window.location.protocol
Note, currently using react-router v5
Beta Was this translation helpful? Give feedback.
All reactions