Skip to main content

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.

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

Example

const [needConfirm, setNeedConfirm] = useLocalStorage("CONFIRM_ORDER", true);

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