Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support React elements in components like `IconButton` for server components

クローズ
#8,447 コメント 0 件 リアクション 2 件 担当者 2 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@joshblack がすでに取り組んでいます。

2026年9月28日 から。

  • #8450 @copilot-swe-agent による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

Look at the IconButton component and related icon-handling components in the source. Understand how icons are currently accepted as functions and how React Server Components (RSC) serialize props. The change likely involves modifying prop types and the rendering logic to accept React elements. Check existing tests for IconButton to see how to update them. 'Done' means IconButton works with both function and element icons in RSC contexts.

索引モデルが issue の本文から書いたものです。

説明

component: IconButton staff

Currently, components like IconButton only accept a function for icons. This prevents it from being used in an RSC context since only plain objects can be passed from server to client components. For example:

<IconButton aria-label="Menu" icon={KebabHorizontalIcon} />

Will not work by default in RSC due to this limitation. Instead, we should support:

<IconButton aria-label="Menu" icon={<KebabHorizontalIcon />} />
主要言語
TypeScript
スター
3.9k
フォーク
697
平均マージ
3日 12時間
マージ済み PR(30日)
51

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

primer/react のほかの issue

primer/react の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。