Skip to content

procoder3001/next_js_data_fetching

Repository files navigation

nextdatafetching-Next

There are multiple ways to fetch data in next js and I wanted to demo some common ways.

Next so fetch

An app that demos multiple ways to fetch data with next js

next-data-fetching-app-router.vercel.app

To run:

Dev

npm install
npm run dev

Prod

npm run build
npm start

Overall design reference repos

Helpful video around differences btw next js 12 and 13: https://www.youtube.com/watch?v=WfgSm_q6HeE

Server vs Client Components: https://www.youtube.com/watch?v=aoHK8skFZ1U

Page Router Vs App Router

This repo is uses app router as it seems to be the latest flavor promoted by Next JS/Vercel.

Follow Up

Notes

I had to use wrapper components because when loading both data in the same page, one with timeout and one without, it caused examples to not be accurate.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published