> ## Documentation Index
> Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# useSessionStorage

> Hook to read and write values in browser sessionStorage with React state binding.

Utility hook to store values in browser's session storage.

* [Tech docs](/sdks/tech-doc/modules/orderly_network_hooks#usesessionstorage)

### Example

```tsx theme={null}
const [needConfirm, setNeedConfirm] = useLocalStorage("CONFIRM_ORDER", true);

return (
  <>
    {/* ... */}
    <label>
      Confirm Order
      <input
        type="checkbox"
        checked={needConfirm}
        onChange={() => {
          setNeedConfirm(!needConfirm);
        }}
      />
    </label>
  </>
);
```
