Next.js 13 Context API Tutorial

preview_player
Показать описание


Other videos:

#nextjs #next #nextjstutorial #context #reactjs
Рекомендации по теме
Комментарии
Автор

Just what I needed, thank you! I was bummed when the next/beta docs were lacking under the context section, but this fulfilled it perfectly! I also love how you got right into the material. Excellent video!

aarongarcia
Автор

My friend! I was just looking for a good way of using context with next 13! Thanks my friend

codewithguillaume
Автор

Thank you so much for this video, I spent a whole day to figure out how to wrap the AuthProvider around the children in Layout.tsx and ran into all kinds of errors. This video is the only one I found that shows what to do when there is no <App>

koozkotopia
Автор

Awesome! This is what I'm looking for. Many thanks!

sahasrabhujaneuron
Автор

Thank you! Exactly what I was looking for. 😊

SheisaCreative
Автор

This is the best video for context api in nextjs.

sumitsaha
Автор

In this case all your application will work client side, a server component inside a client component will also become client and since root layout page is loaded on every page all your components will be client side, you lose therefore the main interest of next, and moreover it can pose some problems of scalability, because you no longer have access to the next's functions which run on the server side

johnnydoe
Автор

You are life saver. Thank you so much for sharing this.

gorkxs
Автор

Thank you so much!
How did you end up with this logic? Could not find this in the doc

z_
Автор

Im on next 14....this is still useful🤝 thank you kind sir!

techug
Автор

Amazing tutorial bro i was trying to learning Context api from many days but not able to understand.

After watching your video Now i understand how it works.

Thanks man!😄

rajatmasih
Автор

what is the advantage of nextjs over reactjs if we have to use "use client" directive to convert a server component into a client one? What am I missing here? Thanks

merakli
Автор

if every other component is render under a client component GlobalThemeProvide then what is purpose of using nextjs?

MudassirKhan-sxjy
Автор

there is an issue with context, if you need to support few languages and when you switching locales (using middleware) for example: from /en/home to /de/home, all context will be lost

MaximM
Автор

Is it going to be the same in Next.js 14?

omardavila
Автор

Thanks for creating this video! However I am having trouble adding the Global Context Provider to layout.js. I am getting the following error: error - SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>). I am not having much luck online, and was wondering if you have come across this error. The provider is already written in an arrow function which is the suggested workaround, but that doesn't appear to be working.

heyneisha
Автор

One question. It's OK turn "use client" the root "page.tsx" or not problem? Thanks to share this buddy.

ThiagoLucioBittencourt
Автор

It works but does not it go against all the server-side Next JS' purpose?

Автор

this context not work in mobile devices?

edudeveloper
Автор

I can't build the project with the error in "children".... how do I build it?

Juan.amaral_