how to get a value from the url react JS code example Example: how to get url in react window.location.href