Immutable props vs changes in component state

From the summary of Building Components in React 18 for Beginners:

  • We should treat props as immutable (read-only) and not modify them.
  • When the state or props of a component change, React will re-render the component and update the DOM accordingly.

Who is we in the first sentence - users of the component?
As a component should change is properties like “currentSpeed” or “selectedColor” ? Or in react the props are only for sending config to the component?

What is the props in the next sentence referring to?

We - the authors of the component - should not modify the props the consumer of the component passed to us.

If the consumer of the component passes different values for props of the component the component will re-render.

1 Like

Thank you yes makes sense. We use events to notify about changes in component.