mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 22:39:26 +01:00
12 lines
287 B
JavaScript
Vendored
12 lines
287 B
JavaScript
Vendored
// TODO: Replace with React.createContext once we can assume React 16+
|
|
import createContext from "mini-create-react-context";
|
|
|
|
const createNamedContext = name => {
|
|
const context = createContext();
|
|
context.displayName = name;
|
|
|
|
return context;
|
|
};
|
|
|
|
export default createNamedContext;
|