Skip to content

[Feature Request]: Create custom useFetch hook #62

Description

@rt4914

Is your feature request related to a problem? Please describe.

We need to create a custom useFetch hook to make API calls.

Describe the solution you'd like

The useFetch hook should support all types of API calls like GET, POST, DELETE, PATCH, PUT.

You can have a look at this code for understanding puroposes:
https://dev.to/adetutu/how-to-create-a-custom-usefetch-hook-in-react-4p7

In the our hook should work something similar to this:
https://github.com/uidotdev/usehooks/blob/main/usehooks.com/src/content/hooks/useFetch.mdx

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureBuilding something new

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions