How do I get the full URL from within a ReactJS component?
I'm thinking it should be something like this.props.location but it is undefined
this.props.location
undefined
window.location.href is what you're looking for.
window.location.href
2.1m questions
2.1m answers
60 comments
57.0k users