import React from "react"; function range(start:number, end:number) { return (new Array(end - start + 1)).fill(undefined).map((_, i) => i + start); } export default function BoardPage() { const imgs = range(0,7); //[1,2,3,4,5,6,7] return (
`Travel Report's Board`
`여행지 후기를 남겨주세요!`
Board
{imgs.map(img => (
{img}
title
date
like
))}
); }