📅  最后修改于: 2022-03-11 15:02:21.461000             🧑  作者: Mango
React has four built-in methods that gets called,
in this order, when mounting a component:
constructor()
getDerivedStateFromProps()
render()
componentDidMount()
The render() method is required and will always be called, the
others are optional and will be called if you define them.