Utilities
isSSR()

isSSR()

Detect if code is running on the server.

Usage

import { isSSR } from '@norr/utilities';
 
const Component = () => {
  return <div>{isSSR() ? 'Server' : 'Browser'}</div>;
};