diff --git a/src/components/emoji.js b/src/components/emoji.js index 22ee40b..e2d87b0 100644 --- a/src/components/emoji.js +++ b/src/components/emoji.js @@ -9,12 +9,11 @@ export default class Emoji extends React.Component { this.emoji = data.emojis[this.props.emoji] } - shouldComponentUpdate(props) { - if (props.size != this.props.size || props.sheetURL != this.props.sheetURL) { - return true - } - - return false + shouldComponentUpdate(nextProps) { + return ( + nextProps.size != this.props.size || + nextProps.sheetURL != this.props.sheetURL + ) } getSheetSize() {