MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / app

Function app

__tests__/react-router.test.ts:1340–1351  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

1338 let root: string;
1339 let cg: CodeGraph;
1340 const app = (body: string) => `import { Route, Routes } from 'react-router-dom';
1341import AppRoutes from './AppRoutes';
1342import { Counter } from './Counter';
1343
1344export default function App() {
1345 return (
1346 <Routes>
1347 ${body}
1348 </Routes>
1349 );
1350}
1351`;
1352 const MAPPED = app('{AppRoutes.map(({ element, ...rest }, index) => <Route key={index} {...rest} element={element} />)}');
1353 const table = (extra: string) => `import { Counter } from './Counter';
1354import { Home } from './Home';

Callers 2

filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected