0.0.3 • Published 1 year ago

atproto-react v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

atproto-react

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

npm.io

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 …;
}
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago