npx skills add smithery/theorcdev --skill rendering-hoist-jsx
theorcdev/8bitcn-ui
rendering-hoist-jsx
Extract static JSX elements outside components to avoid re-creation on every render. Apply when rendering static elements repeatedly or in lists.
Installation
npx skills add theorcdev/8bitcn-ui --skill rendering-hoist-jsx
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Use this skill when writing custom shaders, uniforms, filters, or batchers in PixiJS v8. Covers…
4.1K installsBuild a PixiJS v8 render layer: create the async Application, load textures with Assets, compos…
1.9K installsAlso in this package
Other skills from theorcdev/8bitcn-ui · top by installs.
npx skills add theorcdev/8bitcn-ui
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md1,098 B -
docs
SUMMARY.md172 B
History
- First seen on skills.sh
- First recorded snapshot · 38 installs
SKILL.md
Hoist Static JSX Elements
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 enabled, the compiler automatically hoists static JSX elements and optimizes component re-renders, making manual hoisting unnecessary.