Lens React SDK

The Lens React SDK provides React hooks (useAccount, usePosts, useFollow, useLogin, etc.) layered on top of the Lens client SDK, so frontend developers can wire Lens primitives into UIs without hand-rolling GraphQL queries or auth flows.

API entry from apis.yml

apis.yml Raw ↑
aid: lens-protocol:lens-react-sdk
name: Lens React SDK
description: 'The Lens React SDK provides React hooks (useAccount, usePosts,

  useFollow, useLogin, etc.) layered on top of the Lens client SDK,

  so frontend developers can wire Lens primitives into UIs without

  hand-rolling GraphQL queries or auth flows.

  '
humanURL: https://lens.xyz/docs/sdk/react
baseURL: https://www.npmjs.com/package/@lens-protocol/react
tags:
- SDK
- React
- Hooks
- Frontend
properties:
- type: Documentation
  url: https://lens.xyz/docs/sdk/react
- type: Package
  url: https://www.npmjs.com/package/@lens-protocol/react
- type: Repository
  url: https://github.com/lens-protocol/lens-sdk