MCPcopy Create free account
hub / github.com/SuboptimalEng/coding-tutorials / checkCode

Function checkCode

react-leetcode-clone/client/src/App.jsx:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 const [testCaseResults, setTestCaseResults] = useState([]);
11
12 const checkCode = () => {
13 axios
14 .post('http://localhost:80/python', { code })
15 .then(({ data }) => {
16 setTestCaseResults(data.testCaseResults);
17 })
18 .catch((err) => console.log(err));
19 };
20
21 return (
22 <div className="App">

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected