diff --git a/src/unstated.js b/src/unstated.js index 6955ee0..d6af4cb 100644 --- a/src/unstated.js +++ b/src/unstated.js @@ -1,10 +1,9 @@ // @flow -import React, { type Node } from 'react'; -import createReactContext from 'create-react-context'; +import React, { createContext, type Node } from 'react'; type Listener = () => mixed; -const StateContext = createReactContext(null); +const StateContext = createContext(null); export class Container { state: State;