forEach()
props.comments.forEach(function (cancom, i) {
commentBlock.push(
<div key={i}>
<ul>
<li style={{ fontSize: "14px" }}>Status: {cancom.status} <u>Comment:</u> {cancom.com} - by <b>{cancom.by}</b> <span style={{ fontSize: "10px" }}> {new Date(cancom.on).toLocaleDateString()}</span></li>
</ul>
</div>
);
});
Top comments (0)