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.

Lens React SDK is one of 6 APIs that Lens Protocol publishes on the APIs.io network.

Tagged areas include SDK, React, Hooks, and Frontend. The published artifact set on APIs.io includes API documentation.

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