- Get started by editing
- src/pages/index.tsx
-
- Find in-depth information about Next.js features and API. -
- + const [years, setYears] = useState- Learn about Next.js in an interactive course with quizzes! -
- + useEffect(() => { + const currentYear = new Date().getFullYear() + const availableYears: string[] = [] + for (let year = currentYear; year >= 2005; year--) { + availableYears.push(year.toString()) + } + setYears(availableYears) + }, []) - -- Discover and deploy boilerplate example Next.js projects. -
- + useEffect(() => { + const fetchData = async () => { + try { + const response = await fetch( + `/api/erettsegi?vizsgatargy=${selectedSubject}&ev=${selectedYear}&evszak=${selectedSeason}&szint=${selectedLevel}&tipus=${selectedType}` + ) - -- Instantly deploy your Next.js site to a shareable URL with Vercel. -
- -