[Solved] ReactJS falsely claims a string is an object and refuses to render


getRemoteData is an async function. It returns a Promise, which is an object.

To deal with asynchronous data, you need to store the result in the state and use that instead.

See also the React FAQ: AJAX and APIs

3

solved ReactJS falsely claims a string is an object and refuses to render