Detect whether focus is currently inside a specific element. Useful for styling focused groups, showing/hiding UI when users tab through, or closing popovers/menus when focus exits the container.
Bind a piece of React state to a URL query parameter. It keeps state in sync with the browser’s address bar, updates history (push/replace), and listens to back/forward navigation.