Where is state stored in React?

It’s managed in the component (just like any variable declared in a function). The difference is while a “normal” variable “disappears” when their function exits, the state variables are preserved by React.

Sizin İçin Seçtik  What is the store in Redux?

Leave a Reply

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