05 2020 档案
react表单
摘要://首先简单介绍受控组件,每个都要去change事件触发 import React from 'react' class Form extends React.Component { constructor(props) { super(props); this.state = { username 阅读全文
posted @ 2020-05-31 22:26 执候 阅读(181) 评论(0) 推荐(0) 编辑
react从入门到熟悉(回顾react)
摘要:首先npm和node环境就不说了,不懂得参考我写的vue2.0安装,里面有npm和node安装的介绍react开发参考官网创建react项目搭建开发环境,安装的是最新版npx create-react-app my-app(这个是项目名称)安装完成后cd my-app 直接npm run start 阅读全文
posted @ 2020-05-31 10:40 执候 阅读(274) 评论(0) 推荐(0) 编辑
react生命周期
摘要:图是百度来的 图有一处错误componentWillReceiveProps图上是错的 1 componentWillMount:在组件渲染之前执行2 componentDidMount:在组件渲染之后执行3 shouldComponentUpdate :返回true和false,true代表允许改 阅读全文
posted @ 2020-05-24 23:23 执候 阅读(152) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示