---
title: "Discussion on \"React Context\" | Hashnode"
description: "Discussion on \"React Context\". import { createContext, useState, useEffect } from 'react';\n\nconst NotificationContext = createContext({\n  notification: null, // { title, message, status }\n  showNotification: function (notificationData) {},\n  hideNotification: function () {},\n});\n\n..."
url: "https://hashnode.com/posts/react-context/620c8f337cf10d2765e2907c"
---

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

Discussion

# [React Context](https://thilina.hashnode.dev/react-context?utm_source=hashnode&utm_medium=feed)

import { createContext, useState, useEffect } from 'react'; const NotificationContext = createContext({ notification: null, // { title, message, status } showNotification: function (notificationData) {}, hideNotification: function () {}, }); ...

Feb 16, 2022 · 1 min read · thilina.hashnode.dev  
Read the article

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

## Written by

[thilina dilshan](https://hashnode.com/@Thilina)

@Thilina

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

Software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
