A npm package for calling APIs in React app
APACHE-2.0 License
A npm package for calling APIs in React.
npm pkg set main="lib/index.js" types="lib/index.d.ts" scripts.build="tsc" scripts.prepare="npm run build"
To publish a new version of the package:
npm version patch
npm publish
npm install react-api-clients
# or
yarn add react-api-clients
# or
pnpm add react-api-clients
# or
bun add react-api-clients
You can install this package from GitHub Packages
npm install @ttiimmothy/react-api-clients
# or
yarn add @ttiimmothy/react-api-clients
# or
pnpm add @ttiimmothy/react-api-clients
# or
bun add @ttiimmothy/react-api-clients
import { callApi } from "react-api-clients";
const data = await callApi("https://jsonplaceholder.typicode.com/todos/1");
React Api Clients is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.