The SegmentedControl Component use the “cloneElement”, it‘s an uncommand usage in React official documents
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
The SegmentedControl Component use the “cloneElement”, it‘s an uncommand usage in React official documents;
react doc for cloneElement
packages/ui/src/components/SegmentedControl/SegmentedControl.tsx
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 packages/ui/src/components/SegmentedControl/SegmentedControl.tsx and the linked React cloneElement documentation. Identify how the component currently uses cloneElement and determine the supported replacement approach. Done means the discouraged usage is addressed without changing the component’s existing behavior; the issue does not name a test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100