mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
// 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;
|