useClientSide
useClientSide
is a pure function that returns true
if the code is running on the client side, otherwise false
.
Demo
Server Side
Usage
import {useClientSide} from "@reactusehooks/core";
const isClientSide = useClientSide();
console.log(isClientSide); // true