DEV Community

loading...

Discussion on: Complex app w/ React

Collapse
equimper profile image
Emanuel Quimper

That mean profileData.counts is undefined so you can’t access a key on an undefined type

github.com/manuelalonge/complex-ap... What do axios return here. If you setState and overrides everything make sure the backend response have the shape you want

Collapse
manuelalonge profile image
Manuel Alonge Author

I solved my issue, it was a stupid typo in the Main.js file, but thanks a lot for your support :)

Collapse
manuelalonge profile image
Manuel Alonge Author

I understood partly what you want to say, I am just not sure how to fix this. I am using MONGODB for the first time. Should I probably change the users section of the database?