MCPcopy Create free account
hub / github.com/TanStack/devtools / addResult

Function addResult

examples/react/start-cloudflare/src/routes/index.tsx:42–46  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

40 const [results, setResults] = useState<Array<string>>([])
41
42 const addResult = (text: string) => {
43 setResults((prev) =>
44 [`[${new Date().toLocaleTimeString()}] ${text}`, ...prev].slice(0, 20),
45 )
46 }
47
48 return (
49 <div style={{ maxWidth: '800px', margin: '0 auto', padding: '40px 20px' }}>

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected