docs/recipes/UsingObjectSpreadOperator: tenants != tenets :)

This commit is contained in:
Paul Kögel
2016-02-19 23:57:31 +01:00
parent 7079888334
commit 6f7e08344f

View File

@@ -1,6 +1,6 @@
# Using Object Spread Operator
Since one of the core tenants of Redux is to never mutate state, youll often find yourself using [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) to create
Since one of the core tenets of Redux is to never mutate state, youll often find yourself using [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) to create
copies of objects with new or updated values. For example, in the `todoApp` below `Object.assign()` is used to return a new
`state` object with an updated `visibilityFilter` property: