Which of the following represents a piece of data that can change over time within a component?

  • Context
  • Props
  • Redux Store
  • State
In React, a piece of data that can change over time within a component is represented by state. State is used to manage and track data that can be updated and trigger re-renders when its values change. Props, on the other hand, are immutable and passed from parent to child components, while Context and Redux Store are advanced data management solutions that can also hold mutable data.
Add your answer
Loading...

Leave a comment

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