/** * A hook that provides reactive access to the browser's location object. * * This hook returns an observable that contains the current window.location object * and automatically updates when the URL changes through navigation, pushState, * or replaceState operations. It's useful for building reactive UIs that respond * to URL changes. * * @returns An observable containing the current Location object * * @example * ```tsx * const location = useLocation() * * return ( *
Current URL: {() => location().href}
*Current Path: {() => location().pathname}
*