Nextjs 13 complete tutorial

  Рет қаралды 6,909

Mafia Codes

Mafia Codes

Күн бұрын

In this video we will be doing a quick tutorial on #Nextjs 13 beta
beta.nextjs.org/docs
0:00 Introduction
0:14 Creating Nextjs 13 app
1:15 Folder structure
1:45 Index page
2:54 Root layout file (_app.jsx)
4:32 Creating a new page
5:55 Link from next/link
6:53 Posts page
8:06 Client components
10:30 Fetching data
13:02 Slugs (route params)
18:20 getStaticProps equivalent
18:42 revalidate data
19:14 getServerSideProps equivalent
20:12 revalidate, serverSideProps with a Database
22:28 nesting layouts
26:38 Error page & handling errors
29:07 Loading pages
31:04 Not found page
33:17 CSS modules
34:40 Co-locating components
--------------------------------------------------------------------------
📦FREE $100 credit @Digital Ocean: m.do.co/c/3208f08b3324
--------------------------------------------------------------------------
Subscribe: kzbin.info...
--------------------------------------------------------------------------
💵Support the channel:
Paypal: www.paypal.me/trulymittal
Patreon: / trulymittal
--------------------------------------------------------------------------
======================
✔ Other useful Playlists
======================
#RestAPI (#NodeJS and MongoDB): • REST API using NodeJS ...
#API Authentication using #JWT: • NodeJS API Authenticat...
#Firebase: • Firebase | Build a Not...
Docker: • Docker
MongoDB: • Learn MongoDB in 50 mi...
Html/Css/Js: • HTML / CSS / JS
Android: • Android
Challenges: • Challenges
#tutorial #howto #nodejs #nextjs ‪@mafiacodes‬ #javascript #react

Пікірлер: 30
@lakshitsagar6299
@lakshitsagar6299 Жыл бұрын
Honestly this was the best video guide for nextjs 13 ......Thanks a lot....All of the concepts were so clearly and nicely demonstrated....Thanks..
@mafiacodes
@mafiacodes Жыл бұрын
Glad it helped!
@ToadyEN
@ToadyEN Жыл бұрын
Great tutorial, very to the point, much appreciated :)
@hengkyvanderhouff3572
@hengkyvanderhouff3572 Жыл бұрын
thank you so much, just started learning next, this is exactly what i need fast pace to the point!
@mafiacodes
@mafiacodes Жыл бұрын
Subscribe like share 👍
@Ali-kx7jf
@Ali-kx7jf Жыл бұрын
Great tutorial 👌 keep it up! 💯
@weforyouweb1165
@weforyouweb1165 Жыл бұрын
Wow really good explanation 🥳🎉
@usmanmughal5916
@usmanmughal5916 Жыл бұрын
Very nice Bro.
@ajaygandhi2949
@ajaygandhi2949 Жыл бұрын
Thanks bro
@patite3103
@patite3103 Жыл бұрын
When I create a project from scratch using Next.js 13 can I delete the folders "node_modules" and "pages"? Thank you
@devs_nazmul
@devs_nazmul Жыл бұрын
Please Make a Full Tutorials Brother, You Explained Awesome
@mafiacodes
@mafiacodes Жыл бұрын
Thank you, I will
@AbhayKumarSrivastava
@AbhayKumarSrivastava Жыл бұрын
This is one of the best post I've seen on nextjs 13. Can you show me how to add a responsive Navbar here.
@Lerndemy
@Lerndemy Жыл бұрын
legend
@mafiacodes
@mafiacodes Жыл бұрын
Subscribe like share 👍
@prathyuprasad2914
@prathyuprasad2914 Жыл бұрын
❤❤
@Lichkuroro
@Lichkuroro Жыл бұрын
is this project deployable? do you encounter any red flags on npm run build?
@mafiacodes
@mafiacodes Жыл бұрын
Nopes I do not, but not yet recommended for production since it’s still a experimental feature. Subscribe like share 👍
@okeyshourovroy2769
@okeyshourovroy2769 Жыл бұрын
Can we use axios instead of fetch?
@mafiacodes
@mafiacodes Жыл бұрын
Yup
@imakhlaqXD
@imakhlaqXD Жыл бұрын
Can you make a tutorial for Nextjs 13 for some like me who have worked with React but not much with Nextjs. Every tutorial on web is outdated now.
@mafiacodes
@mafiacodes Жыл бұрын
did this not help...?
@ilan117
@ilan117 Жыл бұрын
Thank you so much ❤ I’m using the same api that have a Images object so e.g post/id and an object of images I run a map inside the single post component …. If you can show us how would you resolve that in client or server side it would be great ְ⁠🤲
@mafiacodes
@mafiacodes Жыл бұрын
If you wanted to only display data, no interactivity from user, then use it as a Server component otherwise use as client component. Rule of Thumb: Split your components that has data as well as interactivity like a button/form into two separate components, for DATA use server components and Interactivity use Client component.
@ilan117
@ilan117 Жыл бұрын
@@mafiacodes thank you very much ! So the loop over images could actually work with the server (normal) component ? For some reason it complied .. I think it was boundry/hydrate problem 🥲 I hope you can show an example 🙏
@okeyshourovroy2769
@okeyshourovroy2769 Жыл бұрын
How to implement apollo client or axios instead of fetch in next13
@mafiacodes
@mafiacodes Жыл бұрын
Watch @ 20:11 To use axios or Apollo client or database query directly do that inside the server component, like I have used the fetch API. To revalidate like in getStaticProps or to run on every request like getServerSideProps use Route Segment Config Options (beta.nextjs.org/docs/api-reference/segment-config)
@nikantkamat8992
@nikantkamat8992 Жыл бұрын
what about the support with redux
@mafiacodes
@mafiacodes Жыл бұрын
You can use it in client components like you do with any state management library.
@hicksinguefield8309
@hicksinguefield8309 Жыл бұрын
pr໐๓໐Ş๓
FIFA 2022 Standings using Nextjs 13 and Tailwind CSS
35:52
Mafia Codes
Рет қаралды 2,3 М.
Next.js Tutorial For Beginners
52:35
LearnWebCode
Рет қаралды 41 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 18 МЛН
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 17 МЛН
Upcoming Changes To Intuit QuickBooks Desktop
35:26
Lim Dynamics
Рет қаралды 9
Next.js 13 - How to use App folder & Layouts
18:41
Tuomo Kankaanpää
Рет қаралды 46 М.
Next.js 13 - The Basics
9:00
Beyond Fireship
Рет қаралды 617 М.
New Routing in NextJS 13 - Complete Overview And In-Depth Look!
23:14
Josh tried coding
Рет қаралды 44 М.
I Was Wrong About Nested React Components
3:17
Jack Herrington
Рет қаралды 61 М.
Turbocharge React Shopping Cart: Jotai State Management!
38:07
Mafia Codes
Рет қаралды 2,1 М.
Chris Bautista: Making typesafe APIs easy with tRPC
13:00
Vercel
Рет қаралды 68 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 18 МЛН