What is state and stateless in React?

Stateful and Stateless Components In React, a stateful component is a component that holds some state. Stateless components, by contrast, have no state. Note that both types of components can use props. In the example, there are two React components.

Sizin İçin Seçtik  Why we use state in React instead of variable?

Leave a Reply

Your email address will not be published. Required fields are marked *