---
title: "Discussion on \"Context API Beginner's Guide\" | Hashnode"
description: "Discussion on \"Context API Beginner's Guide\". Sometimes you may want a variable to be accessible by more than one component. This can be done by using \"props drilling\" or the \"Context API\" hook"
url: "https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3"
---

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

Discussion

# [Context API Beginner's Guide](https://forjessicasake.hashnode.dev/context-api-beginners-guide?utm_source=hashnode&utm_medium=feed)

Sometimes you may want a variable to be accessible by more than one component. This can be done by using "props drilling" or the "Context API" hook

Sep 22, 2022 · 7 min read · forjessicasake.hashnode.dev  
Updated Jan 2, 2023  
Read the article

-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#context-api](https://hashnode.com/tag/context-api)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)

## Written by

[Jessica](https://hashnode.com/@ForJessicasake)

@ForJessicasake · Lagos, Nigeria

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

Software Engineer

## Responses 4

Markdown supported · ⌘↵ to post

[odusanya foluke](https://hashnode.com/@Foluke)

[Oct 10, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/634474c76d64be07a724b193)

Love how very explanatory this is. You write so well, well done!

[Jessica](https://hashnode.com/@ForJessicasake)

[Oct 11, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/634474c76d64be07a724b193#reply-6344ef7b6d64be07a724b854)

Thank you 🤩🥳

[Ifeoma Udu](https://hashnode.com/@ifycodes99)

[Sep 26, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/63315746491a0c3202e49759)

🔥🔥

[Jessica](https://hashnode.com/@ForJessicasake)

[Sep 26, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/63315746491a0c3202e49759#reply-633176a84dd8b2344a768ca6)

Thanks 😊

[Ephraim Duncan](https://hashnode.com/@dephraiim)

[Sep 23, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/632d9ca6f34b380b4b9be6f8)

This is a great piece. Well done.

[Jessica](https://hashnode.com/@ForJessicasake)

[Sep 23, 2022](https://hashnode.com/posts/context-api-beginners-guide/632c7e5be06c24f9f23a4bf3/comment/632d9ca6f34b380b4b9be6f8#reply-632dd6003ac18d0d78a006f3)

Thank you 😊
