Course Content
Subtitle Guide – Hướng dẫn thêm phụ đề
0/1
02 – Optional React Refresher
0/77
03 – NextJS Essentials (App Router)
0/49
15 – Optional NextJS Summary
0/37
16 – Course Roundup
0/1
Next.js 14 & React – The Complete Guide
About Lesson

In the next lecture, we’ll use the useSWR hook.

This hook generally still works as explained, but there is one adjustment you’ll have to make.

You must now add a default “fetcher” when working with useSWR:

useSWR(<request-url>, (url) => fetch(url).then(res => res.json()))

The details will be explained in the next lecture, but if you run into issues using this hook, make the change mentioned above!

Join the conversation