useIsClient*

Determine whether the code is running on the client-side or server-side with useIsClient.

hooks
Description of the SVG image Loading...

About

TheuseIsClient hooks is useful for determining if it’s safe to run certain client-only hooks like useMediaQuery or useLocalStorage. It returns a boolean determining if React’s useEffect hook has finished running (which means the app is being rendered on the client and it’s safe to use browser specific APIs).

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-is-client
# └──> Hook coming soon.

Usage