atproto-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

atproto-react

cute reusable helpers for ur besties' new favorite protocol. made primarily for Next.js@13 apps; super WIP ymmv idk

Exports

ATPProvider

// app/layout.tsx
import { ATPProvider } from "atproto-react";

export default function Layout({ children }) {
  return (
    <html>
      <body>
        <ATPProvider>{children}</ATPProvider>
      </body>
    </html>
  );
}

useATP

// components/CuteComponent.tsx
"use client";

export function CuteComponent() {
  const { login, logout } = useATP();
  return ;
}

Readme

Keywords

Package Sidebar

Install

npm i atproto-react

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

21.8 kB

Total Files

12

Last publish

Collaborators

  • jemgold