make WidthHandler pure component

main
Mike Fix 2 years ago
parent eb8d709a75
commit dc61e0714a
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -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({
</div>
)
}
export default React.memo(WidthHandler)

Loading…
Cancel
Save