Code Ryan
TLDR; don't mutate state directly. Always use setState when updating a piece of state. Also, pass a function when updating state based on previous state.
info_outlineCode Ryan
Today I explain a key point regarding server and client components in Next.js and passing props. Also, I explain what you should know regarding client boundaries in Next.js
info_outlineCode Ryan
Docs: I'm not affiliated with this tool in any way. We've just found it useful the last few months using it on our team. If you know any tools, or even something better than Korbit, let me know in the comments below.
info_outlineCode Ryan
Learn the recommended way to fetch data in Next.js as well as some patterns to know about client and server components.
info_outlineCode Ryan
In todays video, I cover the core concepts of React.js in about 20 minutes. Of course, this isn't everything you need to know. But it is a good starting place and review for some.
info_outlineCode Ryan
docs: https://nextjs.org/docs/app/building-your-application/rendering/client-components
info_outlineCode Ryan
Docs: https://nextjs.org/docs/app/building-your-application/rendering/server-components
info_outlineCode Ryan
Docs: https://nextjs.org/docs/app/building-your-application/rendering
info_outlineCode Ryan
Docs: https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations
info_outlineCode Ryan
Learn how to use Suspense and streaming for sequential data fetching in Next.js
info_outlineToday I explain a key point regarding server and client components in Next.js and passing props. Also, I explain what you should know regarding client boundaries in Next.js