diff --git a/packages/system-react/README.md b/packages/system-react/README.md index 33cd694e..2855a667 100644 --- a/packages/system-react/README.md +++ b/packages/system-react/README.md @@ -6,18 +6,16 @@ Sample: ```js import { useMemo } from "react"; -import { useRequestBuilder, useUserProfile } from "@snort/system-react"; -import { FlatNoteStore, NostrSystem, RequestBuilder, TaggedNostrEvent } from "@snort/system"; +import { SnortContext, useRequestBuilder, useUserProfile } from "@snort/system-react"; +import { NostrSystem, NoteCollection, RequestBuilder, TaggedNostrEvent } from "@snort/system"; -// singleton nostr system class const System = new NostrSystem({}); // some bootstrap relays ["wss://relay.snort.social", "wss://nos.lol"].forEach(r => System.ConnectToRelay(r, { read: true, write: false })); export function Note({ ev }: { ev: TaggedNostrEvent }) { - // get profile from cache or request a profile from relays - const profile = useUserProfile(System, ev.pubkey); + const profile = useUserProfile(ev.pubkey); return (