mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-08 19:34:56 +02:00
12 lines
277 B
JavaScript
12 lines
277 B
JavaScript
// TODO: Replace with React.createContext once we can assume React 16+
|
|
import createContext from "./createContext";
|
|
|
|
const createNamedContext = name => {
|
|
const context = createContext();
|
|
context.displayName = name;
|
|
|
|
return context;
|
|
};
|
|
|
|
export default createNamedContext;
|