摘要: npm i react-transition --save import {CSSTransition} from 'react-transition-group' 阅读全文
posted @ 2019-11-10 20:29 秋风渡明月 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 动画库:React-transition-group ui框架:Ant Design 阅读全文
posted @ 2019-11-10 19:56 秋风渡明月 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-10 19:52 秋风渡明月 阅读(75) 评论(0) 推荐(0) 编辑
摘要: npm i 安装到项目目录下,但是不会在package.json 里写入任何的依赖 npm i -g 安装到全局,需要看你当时把npm config prefix 安装到哪里 npm i --save 会下载到目录下,会在package.json的dependencies中写入依赖 这是生产环境 项 阅读全文
posted @ 2019-11-10 19:14 秋风渡明月 阅读(197) 评论(0) 推荐(0) 编辑
摘要: export default class ClickS extends React.Component { constructor (props) { super(props) this.state= { msg: '123' } console.log(this.props) console.lo 阅读全文
posted @ 2019-11-10 11:52 秋风渡明月 阅读(211) 评论(0) 推荐(0) 编辑
摘要: const ele = <Ff const={'哈哈'} index={55}></Ff> let box = document.querySelector('#app') // console.log(box) // 挂载 render(ele,box) import React,{Compone 阅读全文
posted @ 2019-11-10 10:20 秋风渡明月 阅读(535) 评论(0) 推荐(0) 编辑