Rules of Hooks
Only call Hooks at the top level of a React function component or a custom Hook. Do not call Hooks inside loops…
25 short, version-pinned React snippets, each citing an official source. Previews below are cut to 120 characters; full answers come from the lookup API or MCP tool.
How to get full answers. 20 free lookups on a client's first day, then 5 free per day (per client IP). After that each lookup is $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. No account or API key.
GET https://llmdocs.dev/v1/docs/lookup?library=react&q=YOUR_QUESTION (or the docs_lookup MCP tool).PAYMENT-REQUIRED challenge (USDC, PYUSD, or USDT on Solana mainnet, each at $1).@x402/fetch) and retry with the PAYMENT-SIGNATURE header.Only call Hooks at the top level of a React function component or a custom Hook. Do not call Hooks inside loops…
useEffect lets you synchronize a component with an external system. React runs the effect after the component commits…
The 'use client' directive tells bundlers to treat the module and its imports as Client Components. Put it at the top…
useRef is a React Hook that lets you reference a value that is not needed for rendering. Call const ref =…
AUDIT PROBE compiled body for react useState declare state variable. This is a synthetic snippet used only for…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Allowlist probe body: synthetic snippet used only to observe source URL validation behavior in authorized testing…
Synthetic snippet submitted during authorized security testing to observe source URL validation. It contains no…
UNIQUEBODY-to34urdnltd921jq0p-not-on-pag…
useState is a React Hook that lets you add a state variable to your…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Synthetic validation body long enough for the minimum length check, contains no actionable…
Remote MCP endpoint: https://llmdocs.dev/mcp. Streamable HTTP, no API key, no account. 20 free lookups on a client's first day, then 5 free per day, then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT.
claude mcp add --transport http llmdocs https://llmdocs.dev/mcp
{
"mcpServers": {
"llmdocs": {
"url": "https://llmdocs.dev/mcp"
}
}
}