What is the difference between a class and a state?

Though using state may seem similar to class variable but state is a protected keyword in React that refers to stored component data. The major difference between using class variables and state is updating data . Instead of manually reassigning the variable, you call this.

Sizin İçin Seçtik  ARPA Coin Bugun ne olur?

Leave a Reply

Your email address will not be published. Required fields are marked *