We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c790dd0 commit 92eb966Copy full SHA for 92eb966
src/components/TypeWriter.jsx
@@ -39,7 +39,7 @@ class TypeWriter extends React.Component {
39
}
40
41
shouldComponentUpdate(nextProps, nextState) {
42
- const children = this.props;
+ const { children } = this.props;
43
const nextChildren = nextProps.children;
44
const childrenAreStrings = typeof children === 'string' && typeof nextChildren === 'string';
45
// TODO Implement childrenChanged for non-string children as well
0 commit comments