Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update README.md #48

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fast, lightweight and reusable data fetching

## Why?

Managing multiple API endpoints can be complex and time-consuming. `fetchf` simplifies this process by offering a straightforward, declarative approach to API handling using Repository Pattern. It reduces the need for extensive setup and middlewares, allowing developers to focus on data manipulation and application logic.
Managing multiple API endpoints can be complex and time-consuming. `fetchff` simplifies this process by offering a straightforward, declarative approach to API handling using Repository Pattern. It reduces the need for extensive setup and middlewares, allowing developers to focus on data manipulation and application logic.

**Key Benefits:**

Expand Down Expand Up @@ -99,7 +99,7 @@ const { data, error, status } = await api.getUser({

## ✔️ Easy Integration with React and Other Libraries

`fetchf` is designed to seamlessly integrate with any popular libraries like React, Vue, React Query and SWR. It is written in pure JS so you can effortlessly manage API requests with minimal setup, and without any dependencies.
`fetchff` is designed to seamlessly integrate with any popular libraries like React, Vue, React Query and SWR. It is written in pure JS so you can effortlessly manage API requests with minimal setup, and without any dependencies.

### 🌊 Using with React

Expand Down Expand Up @@ -157,7 +157,7 @@ const ProfileComponent = ({ id }) => {

#### Using with React Query

Integrate `fetchf` with React Query to streamline your data fetching:
Integrate `fetchff` with React Query to streamline your data fetching:

```typescript
import { createApiFetcher } from 'fetchff';
Expand All @@ -178,7 +178,7 @@ export const useProfile = ({ id }) => {

#### Using with SWR

Combine `fetchf` with SWR for efficient data fetching and caching:
Combine `fetchff` with SWR for efficient data fetching and caching:

```typescript
import { createApiFetcher } from 'fetchff';
Expand Down Expand Up @@ -509,7 +509,7 @@ Check Examples section below for more information.
| **Minimal Installation Size** | 🟢 (2.83 KB) | 🟡 (6.51 KB) | 🟢 (2.16 KB) | 🔴 (13.9 KB) | 🟢 (0 KB) |
| **Built-in AbortController Support** | ✅ | -- | -- | -- | -- |

Please mind that this table is for informational purposes only. All of these solutions differ. For example `swr` and `react-query` are more focused on React, re-rendering, query caching and keeping data in sync, while fetch wrappers like `fetchf` or `ofetch` aim to extend functionalities of native `fetch` so to reduce complexity of having to maintain various wrappers.
Please mind that this table is for informational purposes only. All of these solutions differ. For example `swr` and `react-query` are more focused on React, re-rendering, query caching and keeping data in sync, while fetch wrappers like `fetchff` or `ofetch` aim to extend functionalities of native `fetch` so to reduce complexity of having to maintain various wrappers.

## ✔️ Full TypeScript support

Expand Down
Loading