Determine If You Are On The Server Or browser – use-ssr

Category: Others | May 23, 2019
Author: alex-cory
Views Total: 39
Official Page: Go to website
Last Update: May 23, 2019
License: MIT

use-ssr is a React hook to determine if you are on the server or browser.

Features:

  • SSR (server side rendering) support
  • TypeScript support
  • Zero dependencies

Installation:

# Yarn
$ yarn add use-ssr

# NPM
$ npm install use-ssr --save

Preview:

Determine If You Are On The Server Or browser - use-ssr