Uncaught Error: Objects are not valid as a React child when trying to render html in react
Clash Royale CLAN TAG #URR8PPP Uncaught Error: Objects are not valid as a React child when trying to render html in react Here's a simple version my app constructor(props) super(props); let images = JSON.parse(localStorage.getItem('images')) images = images? images : this.match = props.match // the images part of this state should be handled by the app component but for now i'll use localStorage console.log('constructor', images); this.state = count: 0, increment: 9, images: images if (this.state.images.length === 0) this.getImages(this.state); build_gallery_items = (images) => return images.map((src, id) => return ( <div className="item col s4" key=src> <a data-fancybox="gallery" href=src data-caption=`<a href='$src' download>Download</a>`> <img className="image-item" src=src alt="Stuff about this" /> </a> </div> ); ); getImages = (state) ...