Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/usehooks-ts.ts>useIsClient

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useIsClient
import { useIsClient } from "https://deno.land/x/netzo@0.5.63/deps/usehooks-ts.ts";

Custom hook for determining if the code is running on the client side (in the browser).

Examples

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

Returns

boolean

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