Skip to content
Snippets Groups Projects
Commit 88fc16a2 authored by Joseph Cota's avatar Joseph Cota
Browse files

couple of small tweaks.

parent 22c33ab6
No related branches found
No related tags found
No related merge requests found
import React from 'react';
if (process.env.NODE_ENV !== 'production') {
const {whyDidYouUpdate} = require('why-did-you-update');
const { whyDidYouUpdate } = require('why-did-you-update');
whyDidYouUpdate(React);
}
......
......@@ -2,7 +2,7 @@ import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
class BaseClass extends (React.PureComponent || React.Component) {
[React.PureComponent || 'shouldComponentUpdate'](nextProps, nextState) {
[!React.PureComponent && 'shouldComponentUpdate'](nextProps, nextState) {
return shallowCompare(this, nextProps, nextState);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment