algolia / algolia/react-element-to-jsx-string
Children's key is missing
- Dominant language
- JavaScript
- Stars
- 518
- Forks
- 87
- Avg merge
- 3h 56m
- Merged PRs (30d)
- 3
Description
**Issue:** There is something wrong with children's key.
**Example:** The expected output should be
```
```
But I got an output without `RadioButton's` key:
```
```
I am sure the radio button element is correct:
```
{ '$$typeof': Symbol(react.element),
type: [Function: RadioButton],
key: '1-1-0',
ref: null,
props:
{ label: 'auto',
tabIndex: '0',
disabled: false,
checked: false,
name: '1-1' },
_owner: null,
_store: {} }
```
Any suggestions about this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the supplied ReactElement-to-JSX example and trace how child React elements are serialized; the issue names no source file or test to start from. Done means the generated JSX includes key="1-1-0" on the RadioButton while preserving the shown props and parent key.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100