frontend-engineering-edho-ferdian

Guides authoring of React and Next.js components, state, data fetching, motion, and Vite configuration.

2|Updated Sep 6, 2026
One-click install
npx skills add https://github.com/edhoferdian/EEF --skill frontend-engineering-edho-ferdian-edhoferdian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-engineering-edho-ferdian
Source: https://github.com/edhoferdian/EEF/tree/main/.agents/skills/frontend-engineering-edho-ferdian
Command: npx skills add https://github.com/edhoferdian/EEF --skill frontend-engineering-edho-ferdian-edhoferdian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When starting new React/Next.js frontend work, developers often make structural mistakes — misplaced state, useEffect-based data fetching, broken focus management, hydration mismatches, and generic AI-looking UI — that are expensive to fix later. This Skill provides forward-looking authoring guidance so components, animations, accessibility patterns, and Vite configuration are built correctly the first time. ## Core Features & Use Cases - Component and State Design: A state-location decision ladder (local state, lifting, Context, external stores, server-state libraries) plus composition patterns like slots, compound components, and custom hook design. - Interaction and Motion Craft: Focus trapping and restoration for modals, keyboard handling for composite widgets, and a full motion system for motion/react covering tokens, springs, AnimatePresence modes, reduced-motion gating, and SSR/hydration safety. - Accessibility Authoring: Concrete React patterns for labels, error announcements, ARIA attributes, and images that pass WCAG review on the first attempt. - Build Tooling and UI Libraries: Vite configuration guidance (plugins, HMR, proxying, library mode, monorepo setup) and HeroUI setup and theming, plus design-direction and AI-slop detection checklists. - Use Case: When starting a new modal component, you get coordinated guidance on its enter/exit animation, focus trap, Escape handling, ARIA attributes, and reduced-motion fallback in one pass. ## Quick Start Ask how to structure a new React component, where a piece of state should live, or how to set up Vite for a new project, and load the matching reference guidance for that task.

Frequently Asked Questions about frontend-engineering-edho-ferdian

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

FAQPage Schema
How do I decide where state should live in a React app?

Walk a five-rung ladder from the top: component-local useState first, lift to the nearest common parent only when a second component needs it, Context only when drilling crosses 3+ levels, an external store like Zustand for cross-route state, and a server-state library like TanStack Query whenever the source of truth is a server.

How do I fetch data in React without useEffect?

Use await fetch directly in Next.js Server Components, TanStack Query or SWR for client-side caching and mutations, or the React 19 use() hook with a Suspense boundary to read promises during render. The useEffect plus fetch pattern lacks caching, deduplication, and race-condition handling.

HeroUI vs shadcn/ui — which component library should I pick?

HeroUI is an npm package of pre-styled React Aria components themed via Tailwind config, best for shipping a consistent accessible UI quickly. shadcn/ui copies component source into your repo for full ownership, suiting projects that need deep customization or zero runtime UI dependencies.

Why does my Next.js animation cause hydration mismatch errors?

Hydration mismatches happen when the server renders opacity 1 but the client's initial prop says opacity 0. Guard with a mounted state flag so initial matches the server render, and always add the use client directive to files importing from motion/react.

When should I not use this frontend authoring guidance?

Do not use it to review existing code or diffs — that belongs to a code review skill that produces findings with severities. It also does not cover WCAG compliance auditing, security review, or build type-checking failures, which are owned by separate review skills.

How do I make a modal accessible in React?

Trap focus inside the modal while open, restore focus to the triggering element on close, close on Escape, and add role dialog with aria-modal true. Animate the overlay and panel as two coordinated layers, and respect prefers-reduced-motion with an opacity-only fallback.