10 2019 档案
摘要:ant-design的message组件可以使用message.xxx的方法调用,调用代码如下: import { message, Button } from 'antd'; const info = () => { message.info('This is a normal message')
阅读全文
摘要:https://www.jianshu.com/p/c894ea00dfec
阅读全文
摘要:ReactElement 定义:ReactElement是通过React.createElement或JSX语法创建的元素对象,是React的基础构件。它是一个不可变的对象,用于描述UI中实际的DOM元素或组件。 类型:通常一个ReactElement代表的是一个具体的元素(例如,<div>, <B
阅读全文
摘要:React16.3.0之前生命周期 16.3开始建议使用新的生命周期 新的生命周期增加了static getDerivedStateFromProps()以及getSnapshotBeforeUpdate(),废弃了原有的componentWillMount()、componentWillUpdat
阅读全文