When should state be used in React?

React uses an observable object as the state that observes what changes are made to the state and helps the component behave accordingly . For example, if we update the state of any component like the following the webpage will not re-render itself because React State will not be able to detect the changes made.8 Eki 2021

Read more

Use State nedir?

useState() fonksiyonu aslında bir state hook. Bu hook’u, fonksiyon component’i içerisinde çağırıp içerisine istediğimiz state değişkenlerini atayabiliyoruz. Butona tıklanıp tekrar render edilme esnasında React bu state ‘i koruyor.

Read more