kripod / kripod/react-polymorphic-box
displayName and propTypes are not allowed on forwardRef component
オープン
bug
- 主要言語
- TypeScript
- スター
- 347
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## Description
Using displayName and propTypes on a forwardRef component shows error. I guess this is more of an issue with the example code than this library.
## Reproduction
https://codesandbox.io/s/typescript-as-prop-with-react-polymorphic-box-forked-hw0l5?file=/src/App.tsx
## Expected behavior
displayName and propTypes should be allowed.
## Actual behavior
displayName and propTypes are not allowed.
コントリビューションガイド
調査の方向性
リンクされた CodeSandbox でエラーを再現し、その後、このリポジトリで forwardRef コンポーネントに使用されている TypeScript の定義を追跡してください。displayName と propTypes がエラーなしで受け入れられ、既存の多相コンポーネントの型付け動作が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100