Skip to content

Commit f22702f

Browse files
committed
remove react-pure-render dependency
1 parent b12a782 commit f22702f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
},
6767
"dependencies": {
6868
"babel-runtime": "^6.6.1",
69-
"react-base16-styling": "^0.4.1",
70-
"react-pure-render": "^1.0.2"
69+
"react-base16-styling": "^0.4.1"
7170
},
7271
"pre-commit": "lint"
7372
}

src/ItemRange.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import React, { Component, PropTypes } from 'react';
2-
import shouldPureComponentUpdate from 'react-pure-render/function';
1+
import React, { PropTypes } from 'react';
32
import JSONArrow from './JSONArrow';
43

5-
export default class ItemRange extends Component {
4+
export default class ItemRange extends React.PureComponent {
65
static propTypes = {
76
styling: PropTypes.func.isRequired,
87
from: PropTypes.number.isRequired,
@@ -18,8 +17,6 @@ export default class ItemRange extends Component {
1817
this.handleClick = this.handleClick.bind(this);
1918
}
2019

21-
shouldComponentUpdate = shouldPureComponentUpdate;
22-
2320
render() {
2421
const { styling, from, to, renderChildNodes, nodeType } = this.props;
2522

0 commit comments

Comments
 (0)