React Server Components, Next.js App Router and examples
Addy Osmani
MAY 5, 2023
A summary of the state of React Server Components, Next.js App Router, rendering, examples and other related links and thoughts.
This site uses cookies to improve your experience. By viewing our content, you are accepting the use of cookies. To help us insure we adhere to various privacy regulations, please select your country/region of residence. If you do not select a country we will assume you are from the United States. View our privacy policy and terms of use.
Addy Osmani
MAY 5, 2023
A summary of the state of React Server Components, Next.js App Router, rendering, examples and other related links and thoughts.
Smashing Magazine
NOVEMBER 26, 2021
How To Maintain A Large Next.js How To Maintain A Large Next.js In this article, we will discuss a few of those techniques as well as some of the things I wish I had known earlier to help manage large Next.js In certain cases, the build will fail if there are type mismatches in your code as Next.js From the Next.js
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Smashing Magazine
NOVEMBER 9, 2021
Localizing Your Next.js Localizing Your Next.js Instructing Next.js Now your app has multiple locales supported there is one last thing you must be aware of in Next.js. That can easily be achieved with the useRouter custom hook from Next.js, it will return you an object and the selected locale will be a key in there.
Smashing Magazine
JULY 27, 2021
Global vs. Local Styling In Next.js. Global vs. Local Styling In Next.js. I have had a great experience using Next.js After working within the framework, I have found a series of organizational patterns that I believe both conform to the guiding philosophies of Next.js Note : You probably will not need prior Next.js
Smashing Magazine
NOVEMBER 19, 2021
For example, if this was set on the domain smashingmagazine.com , apples.example.smashingmagazine.com and oranges.example.smashingmagazine.com would both return the above TXT value. For now, let’s focus on where they can be applied in combination with Next.js: Providing Hosted Services. The Caveats Of Wildcards With Next.js.
Smashing Magazine
MAY 20, 2021
How To Implement Authentication In Next.js How To Implement Authentication In Next.js In this article, we will see how to implement authentication and authorization in our Next.js Another cool thing about Auth0 is that we have a Next.js Auth0 SDK For Next.js. Let’s see how some of them work in an example Next.js
Smashing Magazine
DECEMBER 2, 2021
How To Protect Your API Key In Production With Next.js How To Protect Your API Key In Production With Next.js In this article, we’ll be using Next.js We’re using Next.js You can read more about Next.js We’ll start by creating a Next.js This is an out-of-the-box feature of Next.js. Caleb Olojo.
Smashing Magazine
JUNE 29, 2021
Breaking Down Bulky Builds With Netlify And Next.js. Breaking Down Bulky Builds With Netlify And Next.js. For example, if your app has multiple pages (views, routes) when generating the deployment artifact, each of those routes becomes a file. Think of it as the max-age header but for routes in your Next.js Átila Fassina.
Smashing Magazine
AUGUST 19, 2022
Implementing A Reset Password Feature With Next.js Implementing A Reset Password Feature With Next.js In a general sense, authentication poses itself as a roadblock to many people when they are trying to get started with a particular framework, and Next.js But first, let’s set up a Next.js Dynamic Routes. Dynamic Routes.
Smashing Magazine
MAY 5, 2021
Reducing HTML Payload With Next.js (Case Study). Reducing HTML Payload With Next.js (Case Study). That happens because of how Server-side rendering works in react and Next.js: When the request arrives at the server — it needs to make an HTML based on a data collection. We’ll see an example later. Data Flow Example.
Smashing Magazine
SEPTEMBER 9, 2021
Using SWR React Hooks With Next.js’ Incremental Static Regeneration (ISR). Using SWR React Hooks With Next.js’ Incremental Static Regeneration (ISR). If you’ve ever used Incremental Static Regeneration (ISR) with Next.js , you may have found yourself sending stale data to the client. 2021-09-09T10:30:00+00:00. More after jump!
DZone
FEBRUARY 7, 2022
SSR Benefits (Next.js). Build: Next.js An example might be an e-commerce site that has only 50 products available for sale. is a framework extensively used by TikTok, Twitch mobile, Nike, IGN, PlayStation, Marvel, and many others. It has support for Typescript and can be deployed without having to configure anything.
Smashing Magazine
MAY 20, 2021
How To Implement Authentication In Next.js How To Implement Authentication In Next.js In this article, we will see how to implement authentication and authorization in our Next.js Another cool thing about Auth0 is that we have a Next.js Auth0 SDK For Next.js. Let’s see how some of them work in an example Next.js
Smashing Magazine
JULY 18, 2022
const premiumUrl = "/with-jokes/how-to-repair-a-smashed-magazine"; const freeUrl = "/bland/how-to-repair-a-smashed-magazine"; An implementation with Next.js Easy redirection with Next.js Example: paid users versus free users, users from company A versus users from company B or C, etc. Let’s see how you can do that. middlewares.
Smashing Magazine
APRIL 29, 2021
Note : Modern image components that build on <img> , like Next.js <Image> (for React) and Nuxt image (for Vue) try to bake in as many of these concepts as possible by default. In the example below, all the images on the page are “eagerly loaded” (the default in browsers today), causing the user to download 1.1?MB
Smashing Magazine
MAY 17, 2021
Our current front-end stack is React served with Next.js We do not rely on Next.js Taking an average , for example, would hide a lot of bad experiences people have. We saw that the way Next.js The first easy win came from an experimental Next.js It wasn’t enough. server) asynchronously in the background.
tRPC
NOVEMBER 20, 2022
Since our last major version release in August 2021, the tRPC community has seen substantial growth: We now have over 15,000 stars on GitHub A Discord community with over 2,000 members 100k+ weekly npm downloads Nearly 200 contributors A growing ecosystem of extensions, examples, and content Today, we're launching tRPC v10. Thank you!
Smashing Magazine
SEPTEMBER 24, 2021
Lessons Learned Rebuilding A Large E-Commerce Website With Next.js (Case Study). Lessons Learned Rebuilding A Large E-Commerce Website With Next.js (Case Study). Obviously, this didn’t feel right, until we found out about Next.js. Developing with Next.js The developer experience with Next.js Jonne Kats. Challenges.
Smashing Magazine
SEPTEMBER 28, 2022
Newer solutions like Next.js SSR and Jamstack are very popular, and more projects are moving to SSR frameworks like Next.js Jamstack files usually use Markdown before being compiled to HTML, for example: author: Agustinus Theodorus title: ‘Title’ description: Description. The examples are from the MDN Docs. Hello World.
CSS Wizardry
JUNE 30, 2023
With this, we can emit high-resolution timestamps at arbitrary points in our application’s lifecycle, so instead of proxying availability via a Navigation Timing, we can drop, for example, performance.mark('app booted') in our code. In fact, this is what Next.js does to let you know when the app has hydrated, and how long it took.
Smashing Magazine
OCTOBER 2, 2023
In the first article, I briefly discussed the technical stack that includes a React-based front-end framework, Next.js In the example above, we have set the width to 1280px in the query. Cloudinary supports it , for example. for the web app, Sanity CMS, Firebase Auth, and Firestore database. I don’t think so.
Smashing Magazine
JUNE 28, 2021
Creating A Multi-Author Blog With Next.js. For example, on dark mode. When you call the component itself, for example, a text input. When you want to style it further, if you don’t want to do it on a global basis, for example, when I specify bottom margins, I do it on a case by case basis. Just as one example.
Smashing Magazine
SEPTEMBER 8, 2021
Find, Fix, And Prevent Accessibility Issues Preety Kumar 2 sessions Sep 14–15 free Vue.js: The Practical Guide Natalia Tepluhina 5 sessions Sep 14–28 dev eCommerce Sites with Next.js There are plenty of things to expect from a Smashing workshop , but the most important one is focus on practical examples and techniques. Black Belt ??
tRPC
MAY 4, 2021
There's no code generation involved & you can pretty easily add it to your existing Next.js/CRA/Express Example Here's an example of a tRPC procedure (aka endpoint) called hello that takes a string argument. lib, please reach out!) CRA/Express project. tsx const appRouter = trpc.router ().query object ( { id : z.
Smashing Magazine
JULY 13, 2021
How To Migrate From jQuery To Next.js. How To Migrate From jQuery To Next.js. That is the case, for example, of Next.js. There are many scenarios where we don’t need (or don’t want) to follow the architecture that frameworks like React or Next.js An example of this is the use of a cascade logic for CSS styling.
CSS - Tricks
SEPTEMBER 9, 2021
Some examples: eleventy-img gatsby-plugin-image next/image nuxt/image. Google calls it “Aurora” : For almost two years, we have worked with some of the most popular frameworks such as Next.js, Nuxt and Angular, working to improve web performance. Like images: An Image component in Next.js Cool, right? I think so?
Smashing Magazine
AUGUST 31, 2021
State Management In Next.js. State Management In Next.js. This article is intended to be used as a primer for managing complex states in a Next.js So, any of the solutions described for React apps can be applied to a Next.js Átila Fassina. 2021-08-31T14:00:00+00:00. 2021-08-31T15:49:51+00:00. is a React framework.
Smashing Magazine
SEPTEMBER 23, 2021
live session we’ll take a close look at some of the confusing and annoying patterns and explore better alternatives alongside plenty of examples and checklists to keep in mind when building or designing one. Behavioral Design Workshop Susan Weinschenk 5 sessions Nov 3–17 ux Early birds! Deep Dive On Accessibility Testing Manuel Matuzovi?
Smashing Magazine
OCTOBER 13, 2021
There are plenty of things to expect from a Smashing workshop , but the most important one is focus on practical examples and techniques. Dozens of practical examples and techniques. Smart Interface Design Patterns, 2022 Edition Vitaly Friedman 5 sessions Oct 25 – Nov 8 ux Early birds! 5 sessions Nov 4–18 dev Early birds! Black Belt ??
Smashing Magazine
AUGUST 3, 2023
For Performance Monitoring Many of you reading this may already be familiar with Next.js, but it is a popular open-source JavaScript framework that allows us to monitor our website’s performance in real-time. One of the key Next.js Here are some examples: Looker Studio filter. Utilize tools such as Next.js
Smashing Magazine
APRIL 29, 2022
Access to the DOM API within the web worker is proxied, creating synchronous XHR requests with the methods and values being accessed (for example, document.title or window.screen.width ). The following is an example of including the <Partytown/> component in a Next.js
Smashing Magazine
JUNE 25, 2021
Creating A Multi-Author Blog With Next.js. Creating A Multi-Author Blog With Next.js. In this article, we are going to build a blog with Next.js By picking the “batteries included” Next.js, we can focus on our application itself. The large and active community behind Next.js Dom Habersack. title: "Hello World!"
Alex Russell
DECEMBER 18, 2022
For example, let's say you send more HTML and less JavaScript, or your serving game is on lock and all critical assets load over a single H/2 link. For a genuinely raw example, consider California, the state where I live. You don't have to take my word for it. How should your estimates change?
Smashing Magazine
MAY 12, 2022
For example, it could be because certain frameworks are more commonly used for building heavier websites. This highlights the amazing improvement that browsers have been able to achieve in handling larger JavaScript payloads, for example by parsing the JavaScript off of the main thread, during the download. Large preview ).
Tim Kadlec
APRIL 21, 2020
instead of Vue.js, Next.js For example, we could use all sites that didn't have any of the mentioned frameworks (jQuery, React, Vue.js, Angular) detected. I suspect folks could start with just the framework and build something that outperforms what Next.js Is there a lighter alternative (Preact, Svelte, etc.)
Smashing Magazine
JANUARY 11, 2021
For example, to make performance more tangible, you could expose the revenue performance impact by showing the correlation between the conversion rate and time to application load, as well as rendering performance. Run performance experiments and measure outcomes — both on mobile and on desktop (for example, with Google Analytics ).
Smashing Magazine
OCTOBER 24, 2023
Analytics is a good example. That’s one example and a common one at that. For example, if a function takes a while to execute or has to wait on something, it freezes everything up in the meantime.” — Brian Barbour So, there we have it: a fight for the main thread. The web fonts example from earlier applies.
Jos
APRIL 6, 2018
You can find more examples on “ React Higher Order Components in depth “ by Fran Guijarro. Look at this example taken from react-media: const MyComponent = ( ) = > (. < This is a good example of lazy-loading JavaScript that is not needed from the beginning, and the rest of resources needed to display the map. < div >.
Jos
APRIL 5, 2018
You can find more examples on “ React Higher Order Components in depth “ by Fran Guijarro. Look at this example taken from react-media: const MyComponent = ( ) = > (. < The example page we are going to use contains several sections or blocks: a header (these days, a large hero image taking the whole above-the-fold area).
Smashing Magazine
FEBRUARY 2, 2022
In this article, we’re going to cover code-splitting best practices and showcase some examples using React, so we load the minimum JavaScript necessary to render a page and dynamically load sizeable non-critical bundles. Let’s take a look at a simple example. When a user lands on a homepage, for example, the entire app.min.js
Smashing Magazine
SEPTEMBER 3, 2019
application: execute the build step, upload files to the server through SFTP, upload assets to AWS S3 and purge them from the CDN, restart the server and finally inform the team through Slack (as it can be appreciated in the image below, the pipeline can be self-explanatory): An example of a pipeline to deploy a Node.js application.
Smashing Magazine
JULY 15, 2021
If you’ve been dabbling in the Jamstack/page rendering/Next.js Normally, when you deploy a website that isn’t server-side or client-side rendered, it has to be compiled and built for the browser to natively load it (so, for example, your JSX is transpiled to vanilla JavaScript, your SCSS compiled to vanilla CSS, your templates into HTML).
Enprowess
SEPTEMBER 20, 2021
For example, Vue is slightly slower in memory allocation and startup times, whereas React could be quicker at runtime. For example: The modification of a React element state triggers the re-rendering of all of the elements in its subtree. For example, Facebook uses React on most of its pages. Vue vs React: Scalability.
Smashing Magazine
NOVEMBER 2, 2021
Below is an example of the Netatmo PWA. Check out how the “Add to Home Screen” feature works on the example below taken on the Apivita Magento PWA. Another example is the Tally Weijl online store that also has a PWA and a native application. These are, for example, ReactJS, VueJS, or AngularJS. You need a site for that.
Expert insights. Personalized for you.
We have resent the email to
Are you sure you want to cancel your subscriptions?
Let's personalize your content