react的生命周期
摘要:Mounting 已插入真实DOM Constructor() 继承 componentWillMount() 渲染前调用 render() 渲染 componentDidMount() 第一次渲染后调用 Updating 正在被重新渲染 componentWillReceiveProps() 在组
阅读全文
create-react-app慢的解决方法
摘要:解决方案是换源,虽然平常使用cnpm来代替npm,但也只是使用新的指令而已,而在寻求create-react-app的相关配置希望修改registry时失败了,最后发现create-react-app指令默认调用npm,于是直接把npm的register给永久设置过来就好了,这样使用cnpm或者np
阅读全文