在componentDidMount中,元素的offsetWidth不正确

时间:2016-08-29 12:03:04

标签: javascript reactjs react-dom

我使用componentDidMountcomponentDidUpdate来跟踪某些更改并调整元素大小。但有时在componentDidMount元素宽度不正确,它与实际大小不同,我稍后会在DOM中看到。调试时我无法得到这个案例。

0 个答案:

没有答案
相关问题