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

[ad_1]

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

[ad_2]

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