diff --git a/documentation/docs/data/packages/simple-rest/index.md b/documentation/docs/data/packages/simple-rest/index.md index d66d36e58638..ad7faa06ec9c 100644 --- a/documentation/docs/data/packages/simple-rest/index.md +++ b/documentation/docs/data/packages/simple-rest/index.md @@ -18,14 +18,21 @@ Simple REST package exports a function that accepts `apiUrl` and `httpClient` pa ```tsx title="app.tsx" import { Refine } from "@refinedev/core"; -// highlight-next-line +// highlight-start import dataProvider from "@refinedev/simple-rest"; +import axios from "axios"; +// highlight-end + +// highlight-start +const httpClient = axios.create(); const App = () => { return ( ")} + // highlight-start + // `httpClient` is optional. + dataProvider={(dataProvider(""), httpClient)} + // highlight-end /* ... */ /> );