Instantly share code, notes, and snippets.
React: Unexpected use of 'location';
Solution: Use window.location instead of bare location.
window.location
location