MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / fetchCode

Function fetchCode

src/components/code/CodeGroupFromFile.tsx:26–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 const [code, setCode] = useState('')
25 useEffect(() => {
26 const fetchCode = async () => {
27 const code = await readFile(path)
28 setCode(code)
29 }
30 fetchCode()
31 }, [path])
32

Callers 1

CodeGroupFromFileFunction · 0.85

Calls 1

readFileFunction · 0.90

Tested by

no test coverage detected