I Fixed Netflix's Trailer Problem with One React Component
đ I Fixed Netflixâs Annoying Trailer Restarts with 3 Lines of React 19âs <Activity> component. It is a game-changer!
React 19.2âs <Activity> component lets you hide UI without destroying stateâthink of it as putting components into hibernation while preserving their memory. I tested it on a Netflix-style trailer problem, and hereâs what actually happened.
Sponsor - Preparing for JavaScript Interviews? Practice REAL React Interview questions on Great Front End
This is how I prepared and cleared frontend interviews at Big Tech, ultimately landing a job at Slack.
Practice Interview Questions Now
1ď¸âŁ Deep Dive: I used React 19.2âs <Activity> Component to Fix Netflixâs Trailers. Hereâs how it went
React 19.2 introduces the Activity component, which solves a critical challenge: hiding UI elements without destroying their state. Think of it as putting components to sleep while preserving their memory.
So I tried using Reactâs new <Activity /> component to fix it. The idea: keep each trailer alive in the background instead of re-rendering it every time the user switches. Basically, no more restarts of the trailer.
Hereâs what I did:
Before:
{isHovered && <video autoPlay muted loop src={movie.trailerUrl} />}
After:
<Activity mode={isHovered ? âvisibleâ : âhiddenâ}>
<video autoPlay muted loop src={movie.trailerUrl} />
</Activity>
Added a ViewTransition for smooth in/out animation:
<ViewTransition>
<Activity mode={isHovered ? âvisibleâ : âhiddenâ}>
<video autoPlay muted loop src={movie.trailerUrl} />
</Activity>
</ViewTransition>
Result: trailers now play smoothly, stop when you move to another movie, and remember where you left off.
Activity is genuinely useful for preserving expensive component state, but itâs not magic. You still need to manage how many components youâre keeping alive.
Full breakdown here:
⥠Quick Hits
2ď¸âŁ 25 CSS cool tricks you didnât know
This fast-paced CascadiaJS talk covers 25+ new CSS features in under 30 minutes. Adam Argyle demonstrates practical use cases, from page transitions and container queries to color schemes and scroll-driven animations. Learn advanced techniques with syntax examples and browser support details.
Range Syntax for Media Queries (finally readable):
/* Old way */
@media (min-width: 400px) and (max-width: 800px) { }
/* New way */
@media (400px <= width <= 800px) { }Scroll-Driven Animations (no JavaScript needed):
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.element {
animation: fade-in linear;
animation-timeline: view();
}Also covered: Page Transitions / View Transitions, Range Syntax for Media Queries, Container Queries, Scroll-Driven Animations, Animating to Height Auto
3ď¸âŁ How the Web Works: A Deep Dive into Rendering Pipelines
Sarah Drasnerâs visual breakdown of what actually happens when you load a page:
How rendering pipelines differ across platforms
The event loop and concurrency models (with diagrams that actually make sense)
WebAssembly performance characteristics and when to use it
Best for: Senior devs who want to understand the âwhyâ behind performance optimizations.
4ď¸âŁ Taylor Swift (Grafanaâs Version): How to track and visualize data related to popâs biggest superstar
The Grafana team built a themed dashboard using Spotify API + Kaggle datasets + BigQuery. The Taylor Swift angle is fun, but the real value is the pattern:
Public data + APIs â Visual dashboard
You could apply the same approach to:
Your favorite sports teamâs stats
Stock market trends
Weather patterns in your city
Any hobby with available data
5ď¸âŁ Using AI Tools for Creating Spooky Halloween Videos
A really cool application of using AI tools like Midjourney, Runway, Googleâs Veo, and ElevenLabs to generate a Halloween-themed spooky video.
Midjourney for initial images
Runway / Google Veo for video generation
ElevenLabs for voice/audio
The Halloween theme is secondary, but whatâs useful is seeing how these tools connect in a real workflow.
đ FROM MY DESK
Have you been affected by layoffs? Need help with Resume reviews? I am here to help!
Taylor Desseyn is joining me next week to review your resumes. Come and join me, and bring your resumes. Get direct feedback.
đ Mundane poll
â¤ď¸ Enjoyed this newsletter?
Subscribe on YouTube for video deep dives



