diff --git a/components/WidthHandler.js b/components/WidthHandler.js index 820707e..be5caac 100644 --- a/components/WidthHandler.js +++ b/components/WidthHandler.js @@ -13,7 +13,7 @@ function clamp(value, min, max) { return value } -export default function WidthHandler({ +function WidthHandler({ innerRef, onChange, onChangeComplete, @@ -81,3 +81,5 @@ export default function WidthHandler({ ) } + +export default React.memo(WidthHandler)