CodeZettaInterview Hub

React · Props · Junior · Best Practice

Why shouldn't you mutate props?

Short Interview Answer

Props are owned by the parent; mutation breaks purity and one-way data flow.

Detailed Explanation

Copy then update in local state, or lift state and pass a setter/callback.

Did you know this answer?