articles, so I did:
{articles.map((art, i) =>
(i + 1) % 3 === 0 ? (
<Row>
{" "}
: <></>
<p>hello</p>
(i + 1) % 3 === 0 ?{" "}
</Row>
) : (
<></>
)
)}
but this print: :
HELLO
(I + 1) % 3 === 0 ?
what I did wrong?
{articles.map((art, i) => (i + 1) % 3 === 0 ? ( <Row> {" "} <></> <p>hello</p> {" "} </Row> ) : ( <></> ) )} try this
I did: {articles.map((art, i) => i % 3 === 0 ? ( <Row> <BlogItem index={i} colNum={3} art={art} /> </Row> ) : ( <BlogItem index={i} colNum={3} art={art} /> ) )} but this return:
Обсуждают сегодня