'Object are not valid as a react child

When I am trying to load data from the server the error appears. But If I disconnect the internet connection the error does not show. I am using MongoDB and nodejs, express for backend API. How can I solve this problem?

react-dom.development.js:14757 Uncaught Error: Objects are not valid as a React child (found: object with keys {newQuantity}). If you meant to render a collection of children, use an array instead.
    at throwOnInvalidObjectType (react-dom.development.js:14757:1)
    at createChild (react-dom.development.js:15009:1)
    at reconcileChildrenArray (react-dom.development.js:15274:1)
    at reconcileChildFibers (react-dom.development.js:15691:1)
    at reconcileChildren (react-dom.development.js:19964:1)
    at updateHostComponent$1 (react-dom.development.js:20733:1)
    at beginWork (react-dom.development.js:22447:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:4161:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:4210:1)
    at invokeGuardedCallback (react-dom.development.js:4274:1)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source