MCPcopy Create free account
hub / github.com/anttiviljami/react-openapi-client / App

Function App

examples/cra-example/src/App.js:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { useOperation, useOperationMethod, OpenAPIProvider } from 'react-openapi-client';
3
4const App = () => (
5 <OpenAPIProvider definition="http://localhost:5001/openapi.json">
6 <PetDetails id={1} />
7 </OpenAPIProvider>
8);
9
10const PetDetails = (props) => {
11 // useOperation is called right away as an effect

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected