---
title: "Discussion on \"Creating Modals/Popups with useContext\" | Hashnode"
description: "Discussion on \"Creating Modals/Popups with useContext\". Are you still sending values to the child component at the bottom? Why not separate the value into a file and have the desired components import it?"
url: "https://hashnode.com/posts/creating-modalspopups-with-usecontext/635dc5ef21c0829770c448d6"
---

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

Discussion

# [Creating Modals/Popups with useContext](https://greyhaired.dev/creating-modalspopups-with-usecontext?utm_source=hashnode&utm_medium=feed)

Are you still sending values to the child component at the bottom? Why not separate the value into a file and have the desired components import it?

Oct 30, 2022 · 7 min read · greyhaired.dev  
Updated Nov 9, 2022  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#usecontext](https://hashnode.com/tag/usecontext)
-   [#modal](https://hashnode.com/tag/modal)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[victor ogbonna](https://hashnode.com/@greyhaired)

@greyhaired · Rivers, Nigeria

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

A Full Stack Developer at work; A Tech Enthusiast at heart

I am a front-end developer at work; I am a tech enthusiast at heart.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
