@shorthandai/react
v0.0.6
Published
Basic type definitions and accessors for ShorthandAI for REact
Downloads
58
Readme
shorthandai
This package provides a Javascript SDK for working with the ShorthandAI in React.
Installation
$ npm install --save @shorthandai/react
$ yarn add @shorthandai/react
Usage
import { useShorthandValue } from '@shorthandai/react'
const { value, loading, error } = useShorthandValue('demo123', {
token: 'demo',
lazy: false,
pollIntervalMS: 0,
})