- 1 Welcome to Remix: The Web, Reimagined The "Why": React, Server-Side Rendering, and the Remix PhilosophySetting up the Environment: Creating Your First Remix AppProject Anatomy: Understanding the Folder StructureHello Remix: Writing Your First Route and Component
- 2 Routing Fundamentals: Navigating the App File-Based Routing: Mapping URLs to FilesNested Routing: Layouts and the <Outlet /> ComponentDynamic Route Segments: Handling IDs and SlugsIndex Routes: Designing the Default View for Nested Layouts
- 3 Data Loading: Fetching on the Server The loader Function: Server-Side Data Fetching BasicsReading URL Parameters and Request Context in LoadersReturning JSON and Rendering with useLoaderDataTyping Loaders: Ensuring Type Safety Between Server and Client
- 4 Data Mutation: Forms and Actions The Remix <Form> Component: Enhancing Native HTML FormsThe action Function: Handling POST Requests on the ServerValidating Form Data and Returning Action Errors to the UIRedirects: Navigating the User After Successful Mutations
- 5 Elevating the UX: Pending States & Optimistic UI The useNavigation Hook: Tracking Global Page TransitionsUX Polish: Disabling Buttons and Showing Loading SpinnersThe useFetcher Hook: Mutations Without Page NavigationOptimistic UI: Faking Instant Updates Before Server Confirmation
- 6 Error Handling: Keeping the App Alive The ErrorBoundary Component: Catching Unexpected Rendering ErrorsThrowing Responses: Handling Expected Errors (404s, 401s)Contextual Errors: Displaying Failures Within Nested RoutesGraceful Degradation: Designing Helpful Fallback UIs
- 7 Styling Your Application The links Function: Injecting Stylesheets AutomaticallyTraditional CSS and CSS Modules IntegrationUtility-First: Setting Up and Using Tailwind CSS with RemixRoute-Specific Styling: Loading CSS Only When Required
- 8 Database Integration (Practical Data Management) Connecting an ORM: Setting up Prisma or DrizzleDirect Access: Querying Databases Securely Inside LoadersData Manipulation: Creating, Updating, and Deleting Records in ActionsManaging Database Connections in Development (The Singleton Pattern)
- 9 Authentication & Session Management Understanding Remix Sessions and Cookie StorageCreating a Login Flow: Validating Users and Setting Session DataProtecting Routes: Checking Authentication Status in LoadersLogging Out: Destroying Sessions Securely
- 10 Advanced Routing Patterns Pathless Layout Routes: Grouping UI Without Changing URLsSplat Routes (Catch-all): Handling Unknown or Dynamic Deep PathsResource Routes: Building API Endpoints and WebhooksFile Uploads: Handling Multipart Forms in Action Functions
- 11 SEO and Document Metadata The meta Function: Managing Title and Description TagsDynamic Metadata: Generating Tags Based on Loader DataOpen Graph & Twitter Cards: Making Pages Beautifully ShareableCanonical Links and Advanced Document Header Control
- 12 Performance & Caching Strategies The headers Function: Controlling Browser and CDN CachingCache-Control Directives: Max-Age and Stale-While-Revalidate ExplainedPrefetching Links: Loading Data Before the User ClicksDefer and Streaming: Non-blocking Data Fetching for Faster Initial Loads
- 13 Going Live: Deployment & Architecture Understanding Remix Adapters: Node, Edge, and ServerlessEnvironment Variables: Managing Secrets Securely in ProductionServerless Deployment: Shipping to Vercel or NetlifyContainerized Deployment: Shipping to Long-Running Servers (Fly.io/Docker)