What is the second argument for setState useful for?

Question:What is the second argument for setState useful for?

1.To invoke code after the setState operation is done

2.To replace the state completely instead of the default merge action

3.To access the previous state before the setState operation

4.None of the above


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!