React is rendering [object object] rather than the JSX
问题 I'm trying to render out journal entries on my site with an object (not array) and I am running into an issue, here is my current code populateJournal(){ const j = Object.values(this.state.journal); var journalEntries = ''; for (var i = 0; i < j.length; i++){ journalEntries+= <div> <h3>{j[i].title} - {j[i].date}</h3> <p>{j[i].entry}</p> </div>; } return(<div>{journalEntries}</div>); } When i call this function it renders "<div>[object object]</div>" and the text between the divs is plain text