React render props nedir?

“Render prop ” tabiri; React bileşenleri arasında kod paylaşımının, değerleri birer fonksiyon olan prop ‘lar kullanılarak yapılması için kullanılmaktadır. Render prop ‘lu bir bileşen, prop olarak bir React elemanı döndüren bir fonksiyon alır ve kendi render mantığını yürütmek yerine bu fonksiyonu çağırır.

Read more

How do you set state?

Syntax: We can use setState() to change the state of the component directly as well as through an arrow function . Example 1: Updating single attribute. We set up our initial state value inside constructor function and create another function updateState() for updating the state.24 Mar 2021

Read more