更新时共有render 和componentDidUpdate两个钩子函数
代码详解:
import React from 'react'
import ReactDom from 'react-dom'
class App extends React.Component{
constructor(props){
super(props)
this.state={
count:0
}
}
//打豆豆
handleClick=()=>
更新时共有render 和componentDidUpdate两个钩子函数
代码详解:
import React from 'react'
import ReactDom from 'react-dom'
class App extends React.Component{
constructor(props){
super(props)
this.state={
count:0
}
}
//打豆豆
handleClick=()=>