import React, {useState} 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 ords = range(1,8); //[1,2,3,4,5,6,7]; const [count, setCount] = useState(0); return (
`Travel Report's Board`
`여행지 후기를 남겨주세요!`
Board
{ords.map((ord, index) => (
{ord}
{/*title */}
date
{count}
))}
); }