I\'m using react and I want to render a new row every 4th column.
react
render
My code:
function Product(props) { const content = prop
write it like this:
function Product(props) { let content = []; props.products.forEach((product, i) =>{ if((i+1) % 4 == 0){ content.push( ) }else{ content.push(); } }); return ( {content} ); }