Logo
    Search

    serversiderendering

    Explore "serversiderendering" with insightful episodes like "Hasty Treat WTF × SSR vs JamStack vs Serverless?", "Hasty Treat - Next.js 12" and "React 18 - A Look Ahead" from podcasts like ""Syntax - Tasty Web Development Treats", "Syntax - Tasty Web Development Treats" and "Syntax - Tasty Web Development Treats"" and more!

    Episodes (3)

    Hasty Treat WTF × SSR vs JamStack vs Serverless?

    Hasty Treat WTF × SSR vs JamStack vs Serverless?

    In this Hasty Treat, Scott and Wes talk about the differences between SSR, JamStack, and Serverless.

    LogRocket - Sponsor

    LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

    Retool - Sponsor

    Retool is the fast way to build internal tools. Visually design apps that interface with any database or API. Switch to code nearly anywhere to customize how your apps look and work. With Retool, you ship more apps and move your business forward—all in less time.

    Visit Retool.com/syntax for more information.

    Show Notes

    Tweet us your tasty treats

    Hasty Treat - Next.js 12

    Hasty Treat - Next.js 12

    In this Hasty Treat, Scott and Wes talk about Next.js 12 and all of its hot new goodness and updates!

    Sanity - Sponsor

    Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

    LogRocket - Sponsor

    LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

    Show Notes

    04:00 - Rust Compiler: ~3x faster Fast Refresh and ~5x faster builds

    06:25 - Middleware (beta): Enabling full flexibility in Next.js with code over configuration

    08:16 - React 18 Support: Native Next.js APIs are now supported, as well as suspense

    09:56 -  AVIF Support: Opt-in for 20% smaller images

    11:58 - Bot-aware ISR Fallback: Optimized SEO for web crawlers

    13:10 - Native ES Modules Support: Aligning with the standardized module system

    14:39 - URL Imports (alpha): Import packages from any URL, no installs required

    Links

    Tweet us your tasty treats!

    React 18 - A Look Ahead

    React 18 - A Look Ahead

    In this episode of Syntax, Scott and Wes talk about everything coming in React 18!

    Freshbooks - Sponsor

    Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    RevenueCat - Sponsor

    RevenueCat makes it easy to build and manage iOS and Android in-app purchases. With a few lines of code, RevenueCat provides IAP infrastructure, customer analytics, data integrations, and gives you time back from dealing with edge cases and updates across the platforms. Created by developers, for developers, thousands of the world’s best apps use RevenueCat to power their in-app purchases and subscriptions. Get started for free at revenuecat.com.

    Show Notes

    04:32 - Automatic Batching

    • Don’t worry about re-renders

    08:32 - New Render API

     const root = ReactDOM.createRoot(document.getElementById('root')); root.render();  
    • No more hydrate method (yay!)

    10:44 - Suspense

     }>                  
    • Suspense is basically a promise resolver component - nothing inside will render until promise is resolved.
    • SuspenseList lets you coordinate the order in which loading indicators show up.

    16:43 - StrictEffects Mode

    18:43 - useTransition() Hook

    • Not an animation hook. They named it this because of the future ability to add animations to React core.
    • Wrap the state update in a “transition” to prevent the ProfilePage from being unmounted while suspending. This lets React know that it should wait for the update to complete.
    • We classify state updates in two categories:
      • Urgent updates reflect direct interaction, like typing, hover, dragging, etc.
      • Transition updates transition the UI from one view to another.

    23:11 - SSR Improvements

    • React.Lazy will work on the Server
    • Finally!
    • https://github.com/reactwg/react-18/discussions/37
    • Server-side rendering (abbreviated to “SSR” in this post) lets you generate HTML from React components on the server, and send that HTML to your users. SSR lets your users see the page’s content before your JavaScript bundle loads and runs.
    • React Server Components

    34:45 - ELI5

    36:37 - Next.js

    • Next.js will probably have support for a lot of these features soon.

    Links

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats!