playfulprogramming / playfulprogramming/playfulprogramming

[Proposed Post]: support ref in React As prop docs

Open Beginner friendly
#1,303 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blog post
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:

https://github.com/playfulprogramming/playfulprogramming/blob/main/content/christianvm/posts/react-as-prop/index.md

Part of series:

No response

Resources

https://github.com/playfulprogramming/playfulprogramming/blob/main/content/christianvm/posts/react-as-prop/index.md

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:

https://github.com/playfulprogramming/playfulprogramming/blob/main/content/christianvm/posts/react-as-prop/index.md

ComponentPropsWithoutRef<E> can be ComponentPropsWithoutRef<E> & {ref?: ComponentPropsWithRef<C>["ref"]}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.