SSE Hooks

useIsClient

Custom hook that determines if the code is running on the client side (in the browser).

Installation

npx sse-tool add use-is-client

Usage

import { useIsClient } from "./{hooks file}";

const isClient = useIsClient();
// Use isClient to conditionally render or execute code specific to the client side.

API

Return Value

Returns boolean.

A boolean value indicating whether the code is running on the client side.

Changelog

c165d — feat: enhance useRoleGuard and useSSR hooks with additional options and documentation

30da4 — feat: add new hooks and their metadata

cf13e — feat: add custom hooks for step navigation, ternary dark mode, timeout, toggle, unmount, and window size

Built with Love • © 2026