Untitled
plain_text
a month ago
741 B
0
Indexable
Never
import Link from 'next/link' import Title from '../components/Title' export default async function Projects() { // const [projects, setProjects] = useState([]) // useEffect(() => { // async function getData() { // const response = await fetch('http://localhost:5000/projects') // const data = await response.json() // console.log(data) // // setProjects(projectsData) // } // getData() // }, []) console.log('ad') return ( <> <Title title="Projects" /> <div className="flex"> {[{ id: 1, name: 'asd' }].map(({ id, name }) => ( <Link key={id} href={`projects/${id}`} title={name}> {name} </Link> ))} </div> </> ) }