title: How to get the origin of current URL using react-router-dom?
body: <p>I'm using react-router-dom inside a react app with server side rendering, and I'm looking for a way to obtain something similar to <code>document.location.origin</code>, but I'm unable to find anything but the pathname. Is there any way to obtain the origin using react-router-dom? Or any other way?</p>