Skip to content

Commit

Permalink
make WidthHandler pure component
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Jun 13, 2022
1 parent eb8d709 commit dc61e07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/WidthHandler.js
Expand Up @@ -13,7 +13,7 @@ function clamp(value, min, max) {
return value
}

export default function WidthHandler({
function WidthHandler({
innerRef,
onChange,
onChangeComplete,
Expand Down Expand Up @@ -81,3 +81,5 @@ export default function WidthHandler({
</div>
)
}

export default React.memo(WidthHandler)

0 comments on commit dc61e07

Please sign in to comment.