Skip to content

shoehive/react

shoehive/react: React hooks and a provider built on shoehive/client.

<ShoehiveProvider url="ws://localhost:3000/shoehive">
<Board tableId={id} />
</ShoehiveProvider>
function Board({ tableId }: { tableId: string }) {
const { view, mySeat, act, pending } = useTable<typeof ticTacToe>(tableId);
...
}