From c817e8ebf1fdfb30cd61cf67be318e0c5a2e2d38 Mon Sep 17 00:00:00 2001 From: AMIT KUSHWAHA Date: Wed, 5 Aug 2026 02:18:03 +0530 Subject: [PATCH] Update terminology for createContext function In course material its mentioned as hook but in react hooks start with use and even as per react createContext is not hook, it is a standard helper factory function. --- src/content/6/en/part6c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/6/en/part6c.md b/src/content/6/en/part6c.md index 7dbb41ea820..01d75c3d35c 100644 --- a/src/content/6/en/part6c.md +++ b/src/content/6/en/part6c.md @@ -697,7 +697,7 @@ React's built-in [Context API](https://react.dev/learn/passing-data-deeply-with- Let's now create a context in the application that stores the counter state management. -A context is created using React's [createContext](https://react.dev/reference/react/createContext) hook. Let's create the context in a file src/CounterContext.jsx: +A context is created using React's [createContext](https://react.dev/reference/react/createContext) factory function. Let's create the context in a file src/CounterContext.jsx: ```js import { createContext } from 'react'