Module applesauce-react

applesauce-react

React hooks for applesauce

import { EventStore, QueryStore, Queries } from "applesauce-core";
import { QueryStoreProvider } from "applesauce-react/providers";
import { useStoreQuery } from "applesauce-react/hooks";

const events = new EventStore();
const store = new QueryStore(events);

function UserName({ pubkey }) {
  const profile = useStoreQuery(Queries.ProfileQuery, [pubkey]);

  return {profile.name || "loading..."};
}

function App() {
  return (
    
      

App

); }

Index

Namespaces