I am developing a Reactjs app with react-leaflet and I am trying to inject the images which I am taking their path from a promise, but the main error that I am taking is the following

Uncaught Error: Objects are not valid as a React child (found: object with keys {original, thumbnail}). If you meant to render a collection of children, use an array instead.

The full code is here: https://gist.github.com/YannisKalaijakis/4acae0d9ad3ec628815074ed2969164c.js

Any ideas?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.