In my react application I am passing parent's state to child as a prop like so:
<Child parentsState={...this.state} />
and it works. but then i thought why not should i pass this.state without spread syntax and i did like:
<Child parentsState={this.state}
and it worked too. mostly i am using spread syntax with arrays and i do not know is there a difference between object without spread syntax and without it?
Thank You!