playfulprogramming / playfulprogramming/playfulprogramming
[Proposed Post]: support ref in React As prop docs
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 227
- Forks
- 106
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 56
Description
Proposed topic title:
React AS Prop
Topic description:
Topic already exists
Link to existing draft:
Part of series:
No response
Resources
Other Notes
React 19 released with support for ref as a prop. I use the As approach for component polymorphism in development. This article can be updated to add support for refs:
ComponentPropsWithoutRef<E> can be ComponentPropsWithoutRef<E> & {ref?: ComponentPropsWithRef<C>["ref"]}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading content/christianvm/posts/react-as-prop/index.md, especially the existing As polymorphism examples and their prop types. Update the article to cover React 19 ref-as-a-prop support using the proposed ref typing, then verify that the examples and explanation consistently support refs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 62/100