Hey Sahil, nice article!
It does cover some misconceptions that we need to fix.
I'd only give a suggestion to use spread operator instead of Object.assign() in the last code, I think it's easier to read as well. It could be like this:
return{...shop,open:!shop.open}
Congrats for your first article! :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Sahil, nice article!
It does cover some misconceptions that we need to fix.
I'd only give a suggestion to use spread operator instead of Object.assign() in the last code, I think it's easier to read as well. It could be like this:
Congrats for your first article! :)