What is state and props in react JS?

In a React component, props are variables passed to it by its parent component. State on the other hand is still variables, but directly initialized and managed by the component .

Sizin İçin Seçtik  How many methods are used for state management?

Leave a Reply

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