Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

react web应用在手机Chrome运行会卡死,应该如何优化?

正在用react 16 开发web应用,主要用手机浏览器访问。目前遇到一个问题,在三星的某些机型中,如果通过Chrome访问,从页面移出组件的时候,页面会卡死。但是如果把Chrome设定为桌面网站,就不会卡。代码如下,这是为什么呢?

this.setState({display: false});

<div>
    {
        display ? <Popup/> : null
    }
</div>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...