CodeZettaInterview Hub

React · JSX · Fresh / Intern · Debugging

What does spreading props {...props} risk?

Short Interview Answer

Forwarding unexpected DOM attrs, overriding important props, or leaking sensitive data.

Detailed Explanation

Be explicit. Destructure known props and pass the rest carefully to DOM elements.

Did you know this answer?