microsoft / microsoft/TypeScript
Visual hint when using a deprecated children prop in a React component
Open
Nobody has claimed this yet.
Awaiting More Feedback
Suggestion
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
Add a visual hint when using the children in a React component are deprecated
Using children as prop you get the visual hint:
There is no hint when used as a child element:
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 reproducing the two JSX examples in a TypeScript React component and compare the diagnostics for children passed as a prop versus written as a child element. Trace the existing deprecated-prop visual hint and JSX checking entry point; done means the child-element form receives the same appropriate hint without changing unrelated diagnostics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100