Concepts
Object spread and shallow updates
Copies enumerable own properties into a new object; later properties override earlier ones. Nested references are shared unless copied separately.
Formal Syntax & Structure
react syntaxreact
Object spread and shallow updatesWorking Example
Example Snippetreact
const next = {...profile, points: 3};