React Pure Component nedir?

React bileşenleri, kullanıcı arabirimini bağımsız, yeniden kullanılabilir parçalara ayırmanıza ve ayrılmış her bir parça hakkında düşünmenize olanak sağlar. React bileşenleri, React .Component ya da React .PureComponent üzerinden alt sınıflandırma yoluyla tanımlanabilir.

Read more

When should I use useContext?

When do you need context? The main idea of using the context is to allow your components to access some global data and re-render when that global data is changed . Context solves the props drilling problem: when you have to pass down props from parents to children.2 Eyl 2021

Read more

What is this setState in React?

setState() setState(updater, [callback]) setState() enqueues changes to the component state and tells React that this component and its children need to be re-rendered with the updated state . This is the primary method you use to update the user interface in response to event handlers and server responses.

Read more