# Is this spread neccessary?

**URL:** <https://forum.codewithmosh.com/t/is-this-spread-neccessary/1807>\
**Category:** React\
**Created:** [January 9, 2021, 6:28pm UTC](https://forum.codewithmosh.com/t/is-this-spread-neccessary/1807 "2021-01-09T18:28:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Augustine\_Awuori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/augustine_awuori/32/873_2.png) [@Augustine\_Awuori](https://forum.codewithmosh.com/u/Augustine_Awuori)\
**Post date:** [February 6, 2021, 4:05pm UTC](https://forum.codewithmosh.com/t/is-this-spread-neccessary/1807/3 "2021-02-06T16:05:58Z")

</div>

This is to avoid changing the state directly. If we don’t spread, we will be changing the state directly. So we need to spread to a new object. Trust me on this

---

_[View the full topic](https://forum.codewithmosh.com/t/is-this-spread-neccessary/1807)._
