MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / fetchData

Function fetchData

src/components/MarkdownRenderer.tsx:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11 useEffect(() => {
12 const fetchData = async () => {
13 const response = await fetch(props.url);
14 const data = await response.text();
15 setMarkdown(data);
16 };
17 fetchData();
18 }, [props.url]);
19

Callers 1

MarkdownRendererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected