epic-react-patterns

Documents how to apply React patterns and optimize code for Epic Stack applications.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/M-Kolacz/michalkolacz.com --skill epic-react-patterns-m-kolacz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-react-patterns
Source: https://github.com/M-Kolacz/michalkolacz.com/tree/main/docs/skills/epic-react-patterns
Command: npx skills add https://github.com/M-Kolacz/michalkolacz.com --skill epic-react-patterns-m-kolacz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a curated set of React patterns, performance tips, and coding conventions tailored for Epic Stack applications to help teams build faster with fewer regressions.

Core Features & Use Cases

  • Data fetching with React Router loaders instead of useEffect.
  • Avoiding unnecessary re-renders via memoization and proper component composition.
  • Code-splitting and lazy loading for performance.
  • Typing and routing patterns aligned with Epic Stack conventions.

Quick Start

Use this skill as a developer reference when architecting new Epic Stack React routes and components. Example: Create a route with a loader that fetches data in parallel and render a memoized list to reduce re-renders.

Frequently Asked Questions about epic-react-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch data in React Router without using useEffect?

Fetch data in React Router without useEffect by using React Router loaders to fetch data in parallel before rendering route components. This Epic Stack pattern avoids client-side waterfalls and ensures data is available when the UI renders.

What's the best way to avoid unnecessary re-renders in Epic Stack React apps?

Avoid unnecessary re-renders in Epic Stack React apps through proper component composition and memoization techniques. Applying memoization ensures that components only re-render when their specific props or state dependencies change.

How do I set up code splitting and lazy loading for React routes?

Set up code splitting and lazy loading for React routes to optimize performance by splitting your bundle. This pattern defers loading route components until they are needed, reducing the initial JavaScript payload for Epic Stack applications.

Does the Epic Stack require specific TypeScript patterns for route components?

Epic Stack requires robust TypeScript types in route components and patterns to ensure code quality. Applying these typing conventions aligns with Epic Stack routing guidelines and prevents type-related regressions during development.

When should I prefer React Router loaders over client-side data fetching?

Prefer React Router loaders over client-side data fetching whenever a route requires data on initial load to prevent waterfalls. Using loaders satisfies Epic Stack conventions for building UI routes and fetching data in parallel.