The code exports a friendbookApi object that you can use to create an Api object. The friendbookApi object has the following properties:

    reducerPath: This is the path to the reducer that you want to use.

    baseQuery: This is the query that you want to use to find all the pages in your friendbook.

    Library: react

    import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query";
    export const friendbookApi = createApi({
      reducerPath: "friendbookApi",
      baseQuery: fetchBaseQuery({ baseUrl: "http://localhost:3000/" }),
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.