|
Hey friend, A few weeks ago I hosted a workshop on Next.js and the workshop was a hit. Towards the end of the workshop, this is all I could hear, " loved this " " learned so much " " increase the price " " create one more " " create a community so we can be your cheerleaders " š„¹š„¹š„¹ I also loved connecting with so many of you and teaching live. After a lot of us went remote, it felt like I'm creating content in the void but this workshop makes it very real. More importantly, I had fun and you had fun. Waitlist for Upcoming Next.js Course š„I'm working on a self-paced Next.js course š¤«.Now, If you sign up to the workshop, you get access to the course for free which is what I'd recommend š. I'll be selling the course in Early access which means you'll get access to the course modules as they become available and you will get hefty discounts until it's fully created. I'd highly recommend you to sign up to the waitlist if you want to level up your Next.js skills. >>>> Click here ā to add yourself to the waitlist. šæ Our Weekly Snack: Partial Pre-renderingUp until now, we knew about Static and Dynamic Rendering. Just a quick refresher, Static Rendering means your page is fully static for example, a blog. Dynamic Rendering means you have dynamic parts to your page i.e. interactivity, for example, users can upvote your blog post, add comments etc. So What is Partial Pre-rendering? (PPR)PPR is a method of getting the best of both worlds - Static as well as Dynamic rendering. In static, we want to download all the blogging data in advance since all our content is static i.e. doesn't change. In Dynamic, let's say that same site has ability to upvote the blog post as well as add comments which makes it dynamic. However, majority of the apps require a mix of the two just like the blogging app we discussed. ā ļø Most routes are not fully static or dynamic. That's where PPR comes in play. In PPR, the static parts of the page are cached already so will come from the CDN known as the shell leading to a faster page load. Then, the dynamic parts will asynchronously get downloaded once the server is ready with the data. šØ Please note that PPR is truly an experimental technology that is not yet recommended for production use.
How does that work?Well, PPR uses React suspense āļø to defer rendering dynamic parts of the app. The shell leaves holes for dynamic content where we can add a Loading Suspense Boundary so user sees a skeleton loading state. š¤ What is a Suspense Boundary? lets you display a fallback until its children have finished loading.The async parts are streamed in parallel. How to enable PPR?𤫠Latest Frontend NewsBundlephobia helps you find the performance impact of npm packages, check it out here ā. āShadCN UI Library now has Charts š - you can copy paste blocks of code directly in your apps. This is huge! What!! A framework-agnostic tool that converts any layout into a drag-to-swap one with just a few lines of code? Here is the landing page āā Want Type safe Server Actions in your Next.js (App Router) project? next-safe-action ā handles your Next.js app mutations type safety, input validation, server errors and even more! Is it time for Next.ts? There is now support for next.config.ts file in Next.js 15 RC. This file earlier was next.config.mjs. Check the tweet visual here āā ā š Weekly Youtube VideosCheck it out and subscribe to my channel āļø for more Frontend, Leadership and Career Development content. What do you think of today's Newsletter? Simply click on one of the links below. |
Join 9200+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!
Hey Reader, A lot of you have been asking me how Iām able to stay so productive and get a lot of work done so I finally broke down my exact workflow and setup in a short video. šæ Our Weekly Snack: Run Multi Agents stress free with Claude Code Git work trees let you check out multiple branches at the same time each in its own folder all backed by the same repo. Instead of one working directory and constant branch switching, you get parallel workspaces. Each work tree has its own isolated...
Hey Reader, I just dropped a super exciting video that covers all 29 Common Next.js Mistakes that I have seen a lot of developers make (including senior developers). PRESENTED BY GRAPHITE Ship AI-generated code without getting buried in massive PRs. Stacking breaks large changes into small, logical PRs that your team can review and merge in parallel, making development faster and smoother. Graphite is the tool that makes stacking effortless. It, Organizes your work, Highlights clean diffs,...
Hey Reader, Happy New Year! As we begin the year, I have dropped an exciting build for you on Building a Full Stack AI SaaS with Next.js 16, React, Hono.js, Tailwind that helps you find your AI Learning Partners based on your Learning Goals. Make sure to subscribe to my Youtube channel, my goal for this year is to cross 100k subscribers so help me make it happen šŖ. The source code alongside cheatsheet is completely free! so enjoy and let me know what you think. PRESENTED BY CLERK Meet the...