Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dokhacgiakhoa/react-best-practices
React & Next.js engineering standards.
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
1 fixed20 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I need a reusable media card UI component in TypeScript for my web app. It needs to display a header visual, tag badges, and dynamically alter its container styling based on status flags passed to it. Please provide the component code and explain how to structure its styling and media rendering for optimal performance.
| Checked | Without skill | With skill |
|---|---|---|
| Renders images using the `next/image` component. | Missed | Passed |
| Merges conditional Tailwind CSS class names using a `cn` helper combining `clsx` and `tailwind-merge`. | Missed | Passed |
The instructions your model reads when the skill loads.
Goal: Build high-performance, maintainable, and accessible React applications using modern patterns (React 19+, Next.js App Router).
app/) for all new projects.'use client' when interactivity (state, hooks, event listeners) is strictly needed.<Suspense> boundaries to stream UI parts that depend on slow data.useEffect for data fetching.children prop to tackle prop drilling.useHookName.any.next/image with proper width, height, and sizes.next/font to eliminate layout shift (CLS).next/dynamic or React.lazy for heavy client components below the fold.@next/bundle-analyzer.clsx + tailwind-merge (typically cn() helper) for conditional class merging.md:, lg: prefixes.test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.