Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

23 lines (15 sloc) 368 Bytes


React sensor hook that tracks brower's location.

For Internet Explorer you need to install a polyfill.


import {useLocation} from 'react-use';

const Demo = () => {
  const state = useLocation();

  return (
      {JSON.stringify(state, null, 2)}
You can’t perform that action at this time.