Proper Way to Set State in ReactJS

ReactJS State manipulation should be done by mutating prevState and not directly to avoid undesired results. In the tutorial we are exploring a little bit more on the topic of…