concept JavaScript object in category react
appears as: JavaScript objects, JavaScript object

This is an excerpt from Manning's book React Hooks in Action.
But, if you decide to store JavaScript objects in state, you need to tread carefully. The updater function will replace the old object entirely. Say you initialize the state like this:
#C Convert the JSON string returned into a JavaScript object