What is the difference between state and props in React?
I’m trying to understand the difference between state and props in React. Both seem to be used for managing data in a component, but I’m unclear about how they differ in terms of functionality and usage. Could someone explain this clearly?