FrontendDeveloper.in

React question detail

Why can't you update props in React?

The React philosophy is that props should be immutable(read only) and top-down. This means that a parent can send any prop values to a child, but the child can't modify received props.

Back to all React questions
Get LinkedIn Premium at Rs 399