Trying to display current size of a ref element in a nested component with React.forwardRef() - it's always showing previous result

后端 未结 0 784
暖寄归人
暖寄归人 2021-01-16 15:04

I need to make a styled-component div with button, button generates size of the div. Then a component nested inside of the div component displays the size. It has to use for

相关标签:
回答
  • 消灭零回复
提交回复
热议问题