Sajari UI

usePlatform

usePlatform is a custom hook to get the current platform for the application.

Import

Return value

The usePlatform hook returns an object the current platform for the application.

Usage

Editable Example
{
  "platform": "",
  "isMac": false,
  "isWindows": false,
  "isLinux": false
}