re-resizable
re-resizable copied to clipboard
Support for em and rem size units
size
and defaultSize
props do not currently support "em" and "rem" size units. See https://github.com/bokuweb/re-resizable/blob/master/src/index.tsx#L163
What is the reason for checking the size unit? Can we just check if its a number then return ${n}px
. Otherwise, just return as is.