Files
remark42/frontend/app/utils/patchPreactContext.js
T
2019-06-05 23:28:57 +03:00

8 lines
230 B
JavaScript

// hack for https://github.com/developit/preact-compat/issues/475
// should be changed when preact@10 is available
import React from 'preact';
import { createContext } from 'preact-context';
React.createContext = createContext;