useString | @tomic

Function useString

  • useString(resource: Resource, propertyURL: string, opts?: useValueOptions): [string | undefined, ((string: string | undefined) => Promise<void>)]
  • Hook for getting and setting a stringified representation of an Atom in a React component. See useValue

    Parameters

    Returns [string | undefined, ((string: string | undefined) => Promise<void>)]