<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho" -->

---
title: MDN ditches React for web components, Railway drops...
description: A roundup of notable frontend and web development news: MDN rebuilt its frontend replacing a React SPA with Lit web components and Rspack, cutting dev server...
canonical: https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: MDN ditches React for web components, Railway drops Next.js for Vite | daily.dev
og:description: A roundup of notable frontend and web development news: MDN rebuilt its frontend replacing a React SPA with Lit web components and Rspack, cutting dev server...
og:url: https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho
og:image: https://api.daily.dev/og/posts/C1wWSo1HO.png
og:image:alt: MDN ditches React for web components, Railway drops Next.js for Vite
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# MDN ditches React for web components, Railway drops Next.js for Vite

**[Web Digest](https://daily.dev/sources/webdev_digest)** · 5 min read · 0 upvotes · 0 comments

## Summary

A roundup of notable frontend and web development news: MDN rebuilt its frontend replacing a React SPA with Lit web components and Rspack, cutting dev server startup from 2 minutes to 2 seconds. Railway migrated its production app from Next.js to Vite and TanStack Router, reducing builds from 10 minutes to under 2. The Axios npm package was compromised via a hijacked maintainer account, deploying a remote access trojan through a postinstall hook before being pulled in ~3.5 hours. Chrome 147 ships element-scoped view transitions as stable. Also covered: Figma's new MCP server for AI agents, CSS name-only containers, a malicious Chrome extension with 100k installs, and Docusaurus 3.10.

## Content

**TLDR:** MDN rebuilt its frontend using Lit web components and Rspack, trading a React SPA for a leaner, islands-based architecture. Railway made a similar call, migrating its production frontend from Next.js to Vite and TanStack Router in two PRs with zero downtime. The Axios npm package was compromised in late March via a hijacked maintainer account, and Chrome 147 ships element-scoped view transitions as stable. Figma also opened its canvas to AI agents via a new MCP server.

---

## MDN rebuilds on Lit and Rspack

MDN's old frontend — a React SPA called 'yari' built on ejected Create React App — was a poor fit for static documentation content from the start. The new stack uses Lit web components for islands of interactivity, custom server components for static HTML templating, and Rspack for builds. The practical results are hard to argue with: dev server startup dropped from 2 minutes to 2 seconds, and pages now ship only the CSS they actually need. Declarative Shadow DOM handles progressive enhancement, and browser compatibility decisions throughout were guided by the Baseline project.

## Railway migrates off Next.js

Railway's Next.js setup had 10-minute builds (6 of those attributable to Next.js itself), a client-heavy app that fought the framework's server-first model, and layout workarounds that kept accumulating. They split the migration into two phases: strip all Next.js-specific APIs, then swap the framework and generate 200+ routes from the original page tree. Nitro handles the server layer now. Builds are under 2 minutes, dev server starts instantly, and routing is type-safe via TanStack Router. They lost built-in image optimization (replaced with Fastly) and had to build in-house equivalents for things like next-seo. TanStack Start's relative immaturity is a known trade-off they've accepted.

## Axios supply chain attack

On March 30, an attacker hijacked the lead Axios maintainer's npm account and published two malicious versions (1.14.1 and 0.30.4). The payload introduced a phantom dependency that deployed a cross-platform remote access trojan on macOS, Windows, and Linux via a postinstall hook. The attacker bypassed GitHub Actions OIDC Trusted Publisher protections by publishing manually with a stolen npm token, leaving no trace in the repo. Automated scanners flagged it within six minutes; npm pulled the packages in about 3.5 hours. If you're not already running `npm ci --ignore-scripts` in CI, now's the time. Pin to a known-safe version and rotate credentials if you pulled those versions.

## Chrome 147: element-scoped view transitions

Chrome 147 ships `Element.startViewTransition()` as stable, letting you scope a view transition to a DOM subtree rather than the whole document. This means multiple transitions can run concurrently, nested transitions work, and `position: fixed` layering issues go away while the rest of the page stays interactive. The feature has been in developer testing since Chrome 140 and was shaped in collaboration with the CSS Working Group. Worth experimenting with if you've been holding off on view transitions because of the full-document scope limitation.

---

## Also notable

- **Figma MCP server:** Figma opened its canvas to AI agents via a new MCP server, letting tools like Claude Code, Cursor, and Codex read and write Figma files using your existing design system components and variables. A 'skills' system lets teams encode design conventions as markdown files. Free in beta.
- **Chrome name-only containers:** CSS name-only containers (Safari 26.4+) let you assign a `container-name` without a `container-type`, giving you component-scoped `@container` blocks with no build tools or BEM required — essentially what CSS Modules does, but native.
- **Axios attack remediation:** Safe versions are anything before 1.14.1 or 0.30.4; remove `plain-crypto-js` from your trees and audit postinstall hooks across your dependency graph.
- **hucre spreadsheet engine:** A zero-dependency TypeScript spreadsheet engine that reads and writes XLSX, CSV, and ODS at ~18 KB gzipped versus SheetJS's ~300 KB, with native ESM and edge runtime support.
- **Docusaurus 3.10:** Rspack/SWC/LightningCSS (the 'Faster' bundle) is now stable and will be on by default in v4. The release also adopts npm Trusted Publishing and adds a daily Socket Firewall security workflow.
- **React Status #468:** Makes the case that `data-testid` attributes are an accessibility smell — role-based selectors are preferable. Also covers Next.js 16.2's stable Adapter API and TanStack DB 0.6 adding SQLite-backed offline persistence.
- **'Amazing Refresh' malware extension:** A Chrome/Edge extension with ~100,000 installs was found exfiltrating page URLs, injecting remotely-served JavaScript into every page in the MAIN execution context, and hijacking affiliate link clicks. Reported to Google and Microsoft for removal.
- **Google open-sources JSIR:** A high-level intermediate representation for JavaScript aimed at enabling better tooling like linters and bundlers, covered in JavaScript Weekly issue 780.
- **Railway's Nitro layer:** Worth noting separately — consolidating redirects, headers, and caching into a single Nitro server layer cleaned up a lot of the scattered config that tends to accumulate in Next.js projects.
- **Design/AI survey:** A survey of 200+ designers and developers found 84% are using AI tools but only 16% report strongly positive productivity outcomes. The design-to-development handoff problem remains largely unsolved, with only 21% reporting smooth handoffs.

## Similar posts on daily.dev

- [Under the hood of MDN's new frontend](https://daily.dev/posts/under-the-hood-of-mdn-s-new-frontend-teqgsjvat) · MDN Blog · 104 upvotes · 0 comments
- [Moving Railway's Frontend Off Next.js](https://daily.dev/posts/moving-railway-s-frontend-off-next-js-ncgxh3cqx) · Railway Blog · 144 upvotes · 7 comments
- [Frontend Wrapped H1 2026: The nine biggest storylines so far](https://daily.dev/posts/frontend-wrapped-h1-2026-the-nine-biggest-storylines-so-far-nviv42jew) · LogRocket · 0 upvotes · 0 comments
- [Issue \#469: A React optimization case study from GitHub — React Status](https://daily.dev/posts/issue-469-a-react-optimization-case-study-from-github-react-status-uanbn6w38) · React Status · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#react](https://daily.dev/tags/react), [#nextjs](https://daily.dev/tags/nextjs), [#vite](https://daily.dev/tags/vite), [#web-components](https://daily.dev/tags/web-components)

[View this post on daily.dev](https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho","headline":"MDN ditches React for web components, Railway drops Next.js for Vite","text":"A roundup of notable frontend and web development news: MDN rebuilt its frontend replacing a React SPA with Lit web components and Rspack, cutting dev server startup from 2 minutes to 2 seconds. Railway migrated its production app from Next.js to Vite and TanStack Router, reducing builds from 10 minutes to under 2. The Axios npm package was compromised via a hijacked maintainer account, deploying a remote access trojan through a postinstall hook before being pulled in ~3.5 hours. Chrome 147 ships element-scoped view transitions as stable. Also covered: Figma's new MCP server for AI agents, CSS name-only containers, a malicious Chrome extension with 100k installs, and Docusaurus 3.10.","url":"https://daily.dev/posts/mdn-ditches-react-for-web-components-railway-drops-next-js-for-vite-c1wwso1ho","datePublished":"2026-04-08T04:20:30.609Z","dateModified":"2026-04-08T04:20:51.188Z","author":{"@type":"Organization","name":"Web Digest","logo":"https://media.daily.dev/image/upload/s--C833eNQW--/f_auto,q_auto/v1773839396/logos/webdev_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/webdev_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/webdev_digest","name":"Web Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Web Digest","item":"https://daily.dev/sources/webdev_digest"},{"@type":"ListItem","position":3,"name":"MDN ditches React for web components, Railway drops Next.js for Vite"}]}
```

