8-bit-pixel-art-patter…
Create pixelated borders, shadows, and effects for 8-bit retro components. Apply when building 8-bit styled UI components that…
Extract static JSX elements outside components to avoid re-creation on every render. Apply when rendering static elements repeatedly or in lists.
Claude Code
$ npx -y skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx --agent claude-code
Codex
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a codex -y
Cursor
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a cursor -y
Gemini CLI
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a gemini-cli -y
GitHub Copilot
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a github-copilot -y
OpenCode
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a opencode -y
Windsurf
$ npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx -a windsurf -y
name: rendering-hoist-jsx description: Extract static JSX elements outside components to avoid re-creation on every render. Apply when rendering static elements repeatedly or in lists.
Extract static JSX outside components to avoid re-creation.
**Incorrect (recreates element every render):**
function LoadingSkeleton() {
return <div className="animate-pulse h-20 bg-gray-200" />
}
function Container() {
return (
<div>
{loading && <LoadingSkeleton />}
</div>
)
}**Correct (reuses same element):**
const loadingSkeleton = (
<div className="animate-pulse h-20 bg-gray-200" />
)
function Container() {
return (
<div>
{loading && loadingSkeleton}
</div>
)
}This is especially helpful for large and static SVG nodes, which can be expensive to recreate on every render.
**Note:** If your project has [React Compiler](https://react.dev/learn/react-compiler) enabled, the compiler automatically hoists static JSX elements and optimizes component re-renders, making manual hoisting unnecessary.
Accessible retro components that you can copy and paste into your apps.Free. Open Source. Built on shadcn/ui. Documentation · Components · Blocks · Themes · Discord
Create pixelated borders, shadows, and effects for 8-bit retro components. Apply when building 8-bit styled UI components that…
Create documentation with gaming-specific examples, retro styling, and 8-bit terminology. Apply when documenting gaming blocks,…
Optimize 8-bit animations for smooth performance. Apply when creating animated pixel art, game UI effects, or any retro-styled…
Import directly from source files instead of barrel files. Apply when using libraries like lucide-react, @mui/material, or…
Use next/dynamic for lazy-loading heavy components. Apply when importing large components like editors, charts, or rich text…
Best practices for wrapping shadcn/ui components. Apply when creating 8-bit styled variants of existing shadcn/ui components.
Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert…
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One…