useReducer Hook nedir?

useReducer , geliştiricilere bileşenlerin state bir akış şeklinde yönetiliyorsa bu aşamada bir kolaylık sağlar useState yerine bu Hook ‘tan faydalanabilirsiniz. Örneğin aşağıdaki örnekte Ekranımızda bir counter değeri var. Buna etki eden UI Bileşenleri var.

Read more

React createContext nedir?

React Context API Nasıl Kullanılır? Paylaşılabilir bir state oluşturmak için ilk yapmamız gereken bir context oluşturmaktır. Context oluşturmak için React .createContext () metodunu kullanılırız. Bu metod oluşturduğumuz context için default değer belirleyebileceğimiz bir parametre alır.2 Şub 2020

Read more

React createContext nedir?

React Context API Nasıl Kullanılır? Paylaşılabilir bir state oluşturmak için ilk yapmamız gereken bir context oluşturmaktır. Context oluşturmak için React .createContext () metodunu kullanılırız. Bu metod oluşturduğumuz context için default değer belirleyebileceğimiz bir parametre alır.2 Şub 2020

Read more

Is Context API used for state management?

Why i used context? React introduced Context API, an alternative to state management packages . It provides a way to pass data through the component tree without having to pass props down manually at every level. Context API is only meant to be used when you need to access data from a 3+ level nested component.

Read more