Replace PureComponent performance wrapper

This commit is contained in:
Thomas Nordquist
2019-07-11 22:06:07 +02:00
parent df3e0fc047
commit a9742ebf81

View File

@@ -137,10 +137,4 @@ function TreeNodeComponent(props: Props) {
}, [treeNode.lastUpdate, treeNode, name, isCollapsed, selected, theme, mouseOver, settings])
}
class TreeNodeComponentFasterReconciliationWrapper extends React.PureComponent<Props, {}> {
public render() {
return <TreeNodeComponent {...this.props} />
}
}
export default withStyles(styles, { withTheme: true })(TreeNodeComponentFasterReconciliationWrapper)
export default withStyles(styles, { withTheme: true })(React.memo(TreeNodeComponent))