
react
oYuLian
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
react学习笔记
1.生命周期 getDefaultProps 初始化Props 设置组件属性的默认值,通过组件的getDefaultProps方法 componentWillMount 在渲染前调用,在客户端也在服务端。 componentDidMount : 在第一次渲染后调用,只在客户端。之后组件已经生成了对应的DOM结构,可以通过this.getDOMNode()来进行访问。 如果你想和其...原创 2018-09-29 11:42:03 · 623 阅读 · 0 评论 -
使用creat-react-app 创建react项目配置使用scss
1.安装sass-loader和node-sass依赖 npm install sass-loader node-sass --save-dev 2.打开react的webpack配置 node_modules/react-scripts/config/webpack.config.dev.js 和 node_modules/react-scripts/config/webpack.co...转载 2018-07-25 17:02:30 · 993 阅读 · 2 评论 -
ant-mobile 起步之路
1.表单 受控组件 const { getFieldProps } = this.props.form; <List renderHeader={() => ''} className="login-input"> <InputItem value="15757101751" clear {...getFieldProps('phone')} ty...原创 2018-07-31 10:27:05 · 1106 阅读 · 0 评论 -
react 拖拽 modal ant design
转载 2018-11-06 16:39:46 · 1597 阅读 · 0 评论 -
react 鼠标滚动加载
npm install react-infinite-scroller原创 2018-11-07 14:41:51 · 1152 阅读 · 0 评论