How can we replace the previous componentWillMount function with the current functional writing method?
1 2 3 4 5 6 7 8 9 10 |
|
PHP中文网2017-05-19 10:20:58
Pure Function Component (PFC) has no lifecycle. If you need these callbacks, don’t force this.
大家讲道理2017-05-19 10:20:58
export default class Test extends React.Component{
componentWillMount(){
1 |
|
}
render(){
1 2 3 4 |
|
}