Skip to main content
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
70%
Published
5 months ago (0.2.0)
function useConnect
useConnect(): UseConnectReturnType

A hook to connect to Chrono browser extension with @tanstack/react-query.

Examples

Show 'Connect' button

import { useConnect } from '@planetarium/chrono-sdk/hooks';

function App() {
  const { connectAsync, isPending } = useConnect();

  return <button onClick={() => connectAsync()} disabled={isPending}>Connect</button>
}

Return Type

UseConnectReturnType

Add Package

deno add jsr:@planetarium/chrono-sdk

Import symbol

import { useConnect } from "@planetarium/chrono-sdk/hooks";

---- OR ----

Import directly with a jsr specifier

import { useConnect } from "jsr:@planetarium/chrono-sdk/hooks";

Add Package

npx jsr add @planetarium/chrono-sdk

Import symbol

import { useConnect } from "@planetarium/chrono-sdk/hooks";

Add Package

yarn dlx jsr add @planetarium/chrono-sdk

Import symbol

import { useConnect } from "@planetarium/chrono-sdk/hooks";

Add Package

pnpm dlx jsr add @planetarium/chrono-sdk

Import symbol

import { useConnect } from "@planetarium/chrono-sdk/hooks";

Add Package

bunx jsr add @planetarium/chrono-sdk

Import symbol

import { useConnect } from "@planetarium/chrono-sdk/hooks";