mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
docs: class properties and object spread are no longer experimental (#4754)
Co-authored-by: Romain Bohdanowicz <romain.bohdanowicz@formation.tech>
This commit is contained in:
committed by
GitHub
parent
c3e09c52c9
commit
fb65da64ac
@@ -542,7 +542,7 @@ var player = {score: 1, name: 'Jeff'};
|
||||
var newPlayer = Object.assign({}, player, {score: 2});
|
||||
// Now player is unchanged, but newPlayer is {score: 2, name: 'Jeff'}
|
||||
|
||||
// Or if you are using object spread syntax proposal, you can write:
|
||||
// Or if you are using object spread syntax, you can write:
|
||||
// var newPlayer = {...player, score: 2};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user