babecottage / atproto-react

cute reusable helpers for ur besties' new favorite protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

cute reusable helpers for ur besties' new favorite protocol


Languages

Language:TypeScript 98.7%Language:Shell 1.3%