Our 3 components are now able to access the global state without the hassle of setting up Redux or the tedious process of prop drilling.25 Oca 2021
Read moreHow do you create a React context?
There are four steps to using React context:
Read moreIs React context a state management?
Even leaving aside Context, React is a state management tool on its own , so the component state may be all that you need if you properly colocate your state.
Read moreContext 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 moreReact 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