Just published `@vex/use-presence` — a tiny hook for the WebSocket presence pattern I keep rewriting on every project. One hook, no provider, no context. Install and go.
const peers = usePresence('room-id')
return <ul>{peers.map(p => <li key={p.id}>{p.name}</li>)}</ul>No replies yet
Be the first to reply.