remixjs-best-practices
Installation
SKILL.md
Remix Best Practices (2025-2026 Edition)
This skill outlines modern best practices for building scalable, high-performance applications with Remix, specifically focusing on the transition to React Router v7 and future-proofing for Remix v3.
π Key Trends (2025+)
- React Router v7 is Remix: All Remix features are now part of React Router v7. New projects should start with React Router v7.
- Server-First Mental Model: Loaders and Actions run only on the server.
- "Future Flags" Adoption: Always enable v7 future flags in
remix.config.jsorvite.config.tsto ensuring smooth migration. - Codemod Migration: Use
npx codemod remix/2/react-router/upgradeto migrate existing v2 apps.
ποΈ Architecture & Data Loading
1. Server-First Data Flow
Avoid client-side fetching (useEffect) unless absolutely necessary.
- Loaders: Fetch data server-side.
- Actions: Mutate data server-side.
- Components: render what the loader provides.