UNPKG

cra-template-jam

Version:

A quick start Create React App template with React Router, Redux Toolkit, TypeScript, Styled Components and custom ESlint configurations

13 lines (10 loc) 309 B
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { BASE_API_URL } from './config'; export const api = createApi({ reducerPath: 'api', baseQuery: fetchBaseQuery({ baseUrl: BASE_API_URL, }), endpoints: () => ({}), }); export const {} = api;