Skip to content

Commit fa1353a

Browse files
committed
removed hoist statics
1 parent 2c38f0a commit fa1353a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/react-container-query/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
},
1717
"dependencies": {
1818
"@zeecoder/container-query": "^2.1.0",
19-
"react": "^15.0.0",
20-
"react-dom": "^15.0.0",
21-
"hoist-non-react-statics": "^2.3.1"
19+
"react": "^15.0.0 || ^16.0.0",
20+
"react-dom": "^15.0.0 || ^16.0.0"
2221
},
2322
"devDependencies": {
2423
"babel-plugin-external-helpers": "^6.22.0",

packages/react-container-query/src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { Component } from "react";
22
import ReactDOM from "react-dom";
33
import Container from "@zeecoder/container-query";
4-
import hoistStatics from "hoist-non-react-statics";
54

65
/**
76
* A HoC to initialise a single `Container` based on the given stats.
@@ -30,7 +29,7 @@ const withContainerQuery = (WrappedComponent, stats, options = {}) => {
3029
")";
3130
HoC.WrappedComponent = WrappedComponent;
3231

33-
return hoistStatics(HoC, WrappedComponent);
32+
return HoC;
3433
};
3534

3635
export default withContainerQuery;

0 commit comments

Comments
 (0)