Doug Doug - 1 year ago 151
React JSX Question

Read the current full URL with React?

How do I get the full URL from within a ReactJS component?

I'm thinking it should be something like

but it is

Answer Source

window.location.href is what you're looking for.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download