![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
qq_777
这个作者很懒,什么都没留下…
展开
-
一个loading的方法组件
class Loading extends React.Component{ render(){ return ( <div>loading</div> ) } } let node = null const loading = { show(){ node = document.createElement('div') document.body.appendChil.原创 2021-06-09 22:44:16 · 92 阅读 · 0 评论 -
react的声明周期
如果有多层组件嵌套 1.创建期: render:从外往里 componentDidMount:从里往外原创 2021-06-09 19:47:35 · 219 阅读 · 0 评论