React Kits1.5.27
DocumentationDocumentation
GitHubGitHub (opens in a new tab)
  • Introduction
  • Quick Start
  • ConnectButton
  • Notification
  • xSettings
    • Connection
    • Connect
    • Disconnect
    • Character
    • Select Characters
    • Edit Character Profile
    • Wallet Account
    • Claim CSB
    • OP Sign Settings
    • Mint New Character
    • Email Account
    • Upgrade Email Account
    • Others
    • Tip
    • CSB Detail
    • Sentry Privacy
    • useIsSsrReady
    • useIsConnected
    • useConnectedAccount
    • useConnectedAction
    • Account Character
    • useAccountCharacter
    • useAccountCharacters
    • Account Balance
    • useAccountBalance
    • useEmailAccountBalance
    • useWalletAccountBalance
    • Follow Actions
    • useFollowCharacter
    • useUnfollowCharacter
    • useFollowCharacters
    • Note Actions
    • usePostNote
    • usePostNoteForNote
    • useUpdateNote
    • useDeleteNote
    • useIsNoteLiked
    • useNoteLikeCount
    • useNoteLikeList
    • useToggleLikeNote
    • useMintNote
    • Operator Sign
    • useIsOpSignEnabled
    • useOpSignBalance
    • useToggleOpSign Operator
    • useOPSignOperator HasPermissions
    • useWalletSignIn
    • useIsWalletSignedIn
  • Customizing Endpoints

On This Page

  • Usage
Question? Give us feedback → (opens in a new tab)Edit this page
Documentation
Hooks
useIsConnected

useIsConnected

Hook for indicating if a user is connected or not. Including both wallet and email connection.

type useIsConnected = () => boolean;

Usage

import { useIsConnected } from "@crossbell/connect-kit";
 
function App() {
	const isConnected = useIsConnected();
 
	return <button>{isConnected ? "Disconnect" : "Connect"}</button>;
}
useIsSsrReadyuseConnectedAccount

MIT © 2023 Natural Selection Labs