← スキル一覧に戻る
TheOrcDev

rendering-hoist-jsx

by TheOrcDev

rendering-hoist-jsxは、コンテンツ作成と管理を支援するスキルです。高品質なコンテンツ生成と最適化により、SEO対応と利用者満足度の向上を実現します。

⭐ 1,530🍴 94📅 2026年1月22日
GitHubで見るManusで実行

ユースケース

📝

ドキュメント生成

コードからドキュメントを自動生成。

✍️

コンテンツ作成支援

ブログ記事やマーケティングコンテンツの作成を支援。

🎨

UIコンポーネント生成

デザインからUIコンポーネントを生成。

SKILL.md


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.

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.

スコア

総合スコア

95/100

リポジトリの品質指標に基づく評価

✓SKILL.md

SKILL.mdファイルが含まれている

+20
✓LICENSE

ライセンスが設定されている

+10
✓説明文

100文字以上の説明がある

+10
✓人気

GitHub Stars 1000以上

+15
○最近の活動

3ヶ月以内に更新がある

0/10
✓フォーク

10回以上フォークされている

+5
✓Issue管理

オープンIssueが50未満

+5
✓言語

プログラミング言語が設定されている

+5
✓タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です