Posts

Showing posts with the label Remix

Remix Explained: The React Framework Built on Web Standards

Introduction React frameworks keep multiplying — Next.js, Nuxt.js, SvelteKit — and each adds its own abstractions on top of the web. Remix, released in 2021 by the creators of React Router, takes a deliberately different stance: instead of inventing new primitives, it builds on the web's own — HTTP requests, forms, and the fetch API — and lets React render on top. The result feels closer to classic web development than most modern frameworks, while still giving you a fast, modern app. Loaders, actions, and progressive enhancement Remix organises apps around routes (folders and files, like the other meta-frameworks), but its core pair is loaders and actions: Loaders — functions that run on the server before a route renders, fetching the data the page needs. The component receives it already loaded, so there is no client-side fetching dance on first render. Actions — functions that handle mutations: form submissions, deletes, updates. A plain HTML form posts to an action, which runs ...