On this page

Hooks

Hooks refer to a collection of React Hooks methods that might be used in device panel development. These methods are encapsulated in @ray-js/panel-sdk to facilitate your product development.

How to get started

$ yarn add @ray-js/panel-sdk

# or

$ npm install @ray-js/panel-sdk

then

import {
  usePanelConfig,
  useScreenAlwaysOn,
  useTopBarTitle,
  useIsSigmeshGatewayConnected,
  useProtocolRun,
} from '@ray-js/panel-sdk';