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
1.4m articles
1.4m replys
5 comments
57.0k users