DEV Community


Discussion on: Updating react nested state properties

steelvoltage profile image
Brian Barbour

Literally just ran into this today. Think I'll just make my life easier and not do nested state.

faithfulanere profile image
Anere faithful

It’s almost impossible to escape if you are working with lots of API’s out there. There could be nested objects like say
Profile: {
First name: ‘’,
Last name: ‘’ }
Totally safer to avoid but it’s a world where everyone does things in different manner. Hi I badly wanna stay away from super nested stuff all the time but I am stuck in that loop