When it is recommended to pass this.setState as a function instead of an object?

Question:When it is recommended to pass this.setState as a function instead of an object?

1.When the new state should completely replace the old state

2.When the new state depends on the old state

3.When the new state does not depend on the old state

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!