---
title: "Discussion on \"Build Your Own Custom React Hook.\" | Hashnode"
description: "Discussion on \"Build Your Own Custom React Hook.\". In almost every front-end application we make API calls. Two most popular ways of making HTTP requests are either by using Fetch API or Axios library.\nIn this article, I’ll explain how to write a custom hook for Axios in React. By following this meth..."
url: "https://hashnode.com/posts/build-your-own-custom-react-hook/60e9df3ac551f16b0f8484e3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build Your Own Custom React Hook.](https://blog.suyashpradhan.com/build-your-own-custom-react-hook?utm_source=hashnode&utm_medium=feed)

In almost every front-end application we make API calls. Two most popular ways of making HTTP requests are either by using Fetch API or Axios library. In this article, I’ll explain how to write a custom hook for Axios in React. By following this meth...

May 6, 2021 · 3 min read · blog.suyashpradhan.com  
Updated Aug 17, 2021  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#apis](https://hashnode.com/tag/apis)
-   [#axios](https://hashnode.com/tag/axios)

## Written by

[Suyash Pradhan](https://hashnode.com/@suyashpradhan)

@suyashpradhan · Mumbai

  
[View profile](https://hashnode.com/@suyashpradhan)

Frontend Engineer | UI/UX | Reactjs | React Native | TypeScript

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
