useEffect ne için kullanılır?

useEffect , hizli bir sekilde ozetlemek gerekirse, uygulamanizin ayaga kalkma asamasinda, uygulamanin bagimli oldugu yan islemleri cagirmak icin kullandigimiz bir yontem. Bu, bir ihtiyac dogrultusunda api call da olabilmekle birlikte, window objesinden cekilmeyi bekleyen cesitli event’ler de olabilir.

Read more

React Hooks ne işe yarar?

React hooks bir class yazmadan react özelliklerini kullanmanıza olanak sağlayan bir yapıdır. React geliştiricilerinin hatırlayacağı üzere daha önce oluşturduğumuz class’ları react .component’ten extend ediyorduk ve bu sayede react özelliklerini kullanabiliyorduk.

Read more

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