---
title: "Discussion on \"Learning how to create custom hooks with API resource\" | Hashnode"
description: "Discussion on \"Learning how to create custom hooks with API resource\". Introduction\nBefore now; it was pratically impossible to have a state in a functional component  then comes React Hooks.\nWhat is React Hooks?\nI can not really give a specific definition to react hooks but what I can say is that, react-hooks provides ..."
url: "https://hashnode.com/posts/learning-how-to-create-custom-hooks-with-api-resource/62c2fb3dccecfb25bbc78dbf"
---

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

Discussion

# [Learning how to create custom hooks with API resource](https://akinolu52.hashnode.dev/learning-how-to-create-custom-hooks-with-api-resource?utm_source=hashnode&utm_medium=feed)

Introduction Before now; it was pratically impossible to have a state in a functional component then comes React Hooks. What is React Hooks? I can not really give a specific definition to react hooks but what I can say is that, react-hooks provides ...

Jul 4, 2022 · 5 min read · akinolu52.hashnode.dev  
Updated Jul 16, 2022  
Read the article

-   [#custom-hooks](https://hashnode.com/tag/custom-hooks)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Emmanuel Akinyemi](https://hashnode.com/@akinolu52)

@akinolu52

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

JS Freak

I love JavaScript

## Responses 1

Markdown supported · ⌘↵ to post

[Ayomiku Olatunji](https://hashnode.com/@Ayomiku)

[Jul 4, 2022](https://hashnode.com/posts/learning-how-to-create-custom-hooks-with-api-resource/62c2fb3dccecfb25bbc78dbf/comment/62c328f7c0401b3dcbcfe2e6)

Wow 🥺🥺🥺. I really learn few things from your post. The typescript part of it got me really hard.

[Emmanuel Akinyemi](https://hashnode.com/@akinolu52)

[Jul 4, 2022](https://hashnode.com/posts/learning-how-to-create-custom-hooks-with-api-resource/62c2fb3dccecfb25bbc78dbf/comment/62c328f7c0401b3dcbcfe2e6#reply-62c32c76ccecfb25bbc7972a)

Thanks for the comment, I’m happy that you can see relate to it. 🫡
