From 46c5b16508cfd61fbe4b0fa49a1e8f8301ba0763 Mon Sep 17 00:00:00 2001 From: saket sinha Date: Wed, 2 Jun 2021 12:15:39 +0530 Subject: [PATCH] component to pure component --- src/SortableElement/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortableElement/index.js b/src/SortableElement/index.js index eca7aaa41..9ba88f7cf 100644 --- a/src/SortableElement/index.js +++ b/src/SortableElement/index.js @@ -18,7 +18,7 @@ export default function sortableElement( WrappedComponent, config = {withRef: false}, ) { - return class WithSortableElement extends React.Component { + return class WithSortableElement extends React.PureComponent { static displayName = provideDisplayName( 'sortableElement', WrappedComponent,