NextJs Dynamic Route undefined - how to map routes to data and wait for the router to be ready.
Автор: Digital CEO
Загружено: 2022-05-11
Просмотров: 5884
Описание:
In this video we'll create a dynamic route in NextJs in 4 different ways. The first method we'll use useEffect and useState and make sure the router is ready before trying to use the data. Then I'll show you 3 more different methods using NextJs's getServerSide props where you don't necessarily need to wait for the router, nor use useEffect or even state. That's because getServerSide props is server side rendered and ensures the data arrives to the page before it loads.
CONNECT ON MY DISCORD:
/ discord
Twitter: / omarel
GitHub: https://github.com/oelbaga
#nextjs #dynamicroutes #getserversideprops #react
Code Repo from this video can be found here:
https://github.com/uiworkspace/nextjs...
Get early access to my project/
A library of pre-built user interface layouts and components you can place on any react site: https://uiworkspace.com
Twitter:
/ omarel
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: