Something went wrong. Try again.
Testing building apps with atproto
Something went wrong. Try again.
1234567891011121314151617181920import { html, atom } from "../lib/core"import { LoginForm } from "./LoginForm"import { LogoutButton } from "./LogoutButton"
export const App = () => { (async () => { const userData = await (async () => { const r = await fetch('/api/session') return await r.json() })() console.log(userData ?? "No user logged in") })()
return html` <h1>Hi</h1> ${LoginForm()} ${LogoutButton()} `}