Answers for "What is the purpose of callback function as an argument of setState()"

0

What is the purpose of callback function as an argument of setState()

this.setState({
    name:'value' 
},() => {
    console.log(this.state.name);
});
Posted by: Guest on April-05-2021

Code answers related to "What is the purpose of callback function as an argument of setState()"

Browse Popular Code Answers by Language