React hooks for the content API
@myna-sh/react ships hooks over the public content client, and joins the lockstep release set alongside the SDK, CLI, and MCP server.
@myna-sh/react provides hooks over the public content client: list a collection, read an entry, read a singleton. Each carries loading and error state, and an AbortSignal wired to component lifetime.
const { data, isLoading } = useEntries("posts", { order: "-publishedAt", limit: 10 });
It peers on @myna-sh/sdk rather than wrapping it, so read options and generated types are identical between a hook and a direct call. Passing a generated MynaCollections registry types collection keys, field payloads, order keys, and filters.
Lockstep releases
@myna-sh/sdk, @myna-sh/cli, @myna-sh/mcp, and @myna-sh/react publish together, from the same commit, at the same version. The CLI and MCP server bundle the SDK at build time, so CI fails the build when the four disagree.
Affects react · sdk · cli · mcp
