What is pros and state in react JS?

While both hold information that influences the output of render, they are different in one important way: props get passed to the component (similar to function parameters) whereas state is managed within the component (similar to variables declared within a function).

Sizin İçin Seçtik  How do you set state value in React Hooks?

Leave a Reply

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