dillon1000/react
Commit
Browse files 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?)
Changed paths1 file
First-parent comparisondocs/docs/09.5-clone-with-props.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…