What is a React context?

What is React Context? React Context is a method to pass props from parent to child component(s), by storing the props in a store(similar in Redux) and using these props from the store by child component(s) without actually passing them manually at each level of the component tree.

Read more

Context API nasıl kullanılır?

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 Hooks nedir?

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