8 lines
230 B
JavaScript
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;
|