Question 1 out of 10

    What is the difference between props and state in React?

    Props are read-only, state is mutable

    In React, props are used to pass data from parent to child components, and they are read-only. State, on the other hand, is used for mutable data that affects the component's behavior and rendering.