We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac7626d commit c10bca8Copy full SHA for c10bca8
apps/react-kit-demo/src/services/BookService.ts
@@ -1,4 +1,3 @@
1
-import { FetchClient } from '@react-kit/*';
2
import { BASE_API_URL, BOOK_API_URL } from '../constants/ApiConstants';
3
import { Book } from '../types/Book';
4
@@ -16,6 +15,6 @@ export class BookService {
16
15
* @since 1.0.0
17
*/
18
static async getAllBooks(): Promise<Book[]> {
19
- return await FetchClient<Book[]>(`${BASE_API_URL + BOOK_API_URL}/books`);
+ return await fetch(`${BASE_API_URL + BOOK_API_URL}/books`).then((res) => res.json());
20
}
21
0 commit comments