isBrowser utility is a function that returns a Boolean that indicates whether the code was run in the browser. This information is useful because client components are server-rendered. Use the
isBrowser utility if you don't want logic within your client component to be rendered on the server.
Example codeAnchor link to section titled "Example code"
Return typeAnchor link to section titled "Return type"
A Boolean indicating whether the code was run in the browser.