dillon1000/react

Commit

Add note about key prop being excluded by cloneWithProps

Whilst this is intentional behaviour (see #1274), it is not documented anywhere, so it is worth mentioning.

It would also be nice if React issued a warning to console if a cloned component loses its key (as this will silently break reconciliation?)
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/09.5-clone-with-props.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…