Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5b63b5c

Browse files
committed
fix: upgrade minimum React version to 16.8
1 parent 8db8279 commit 5b63b5c

File tree

3 files changed

+17
-272
lines changed

3 files changed

+17
-272
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@
5959
],
6060
"peerDependencies": {
6161
"@popperjs/core": "^2.0.0",
62-
"react": "0.14.x || ^15.0.0 || ^16.0.0"
62+
"react": "^16.8.0"
6363
},
6464
"dependencies": {
6565
"@babel/runtime": "^7.9.2",
66-
"create-react-context": "^0.3.0",
6766
"deep-equal": "^2.0.1",
68-
"prop-types": "^15.6.1",
6967
"warning": "^4.0.2"
7068
},
7169
"devDependencies": {

src/Manager.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// @flow
22
import * as React from 'react';
3-
import createContext, { type Context } from 'create-react-context';
43

5-
export const ManagerReferenceNodeContext: Context<?HTMLElement> = createContext();
6-
export const ManagerReferenceNodeSetterContext: Context<
4+
export const ManagerReferenceNodeContext = React.createContext<?HTMLElement>();
5+
export const ManagerReferenceNodeSetterContext = React.createContext<
76
void | ((?HTMLElement) => void)
8-
> = createContext();
7+
>();
98

109
export type ManagerProps = {
1110
children: React.Node,

0 commit comments

Comments
 (0)