frankiehayward
10/9/2019 - 3:02 PM

currentURL

This snippet returns the current URL.

const currentURL = () => window.location.href;

currentURL(); // 'https://medium.com/@fatosmorina'