Skip to content

Commit 6a8cdc9

Browse files
committed
Use Component instead of PureComponent for StyledElement
1 parent 82ee302 commit 6a8cdc9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"jss-preset-default": "^2.0.0"
4444
},
4545
"peerDependencies": {
46-
"react": "^15.3.0"
46+
"react": ">=14"
4747
},
4848
"devDependencies": {
4949
"babel-cli": "^6.23.0",

src/styled.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {PureComponent, createElement} from 'react'
1+
import {Component, createElement} from 'react'
22
import {getDynamicStyles} from 'jss'
33

44
import filterProps from './utils/filterProps'
@@ -24,7 +24,7 @@ const styled = ({tagName, elementStyle, mountSheets}: StyledArgs) => {
2424

2525
const availableDynamicTagNames = []
2626

27-
return class StyledElement extends PureComponent {
27+
return class StyledElement extends Component {
2828
static tagName: string = tagName
2929
static style: ComponentStyleType = elementStyle
3030

0 commit comments

Comments
 (0)