React.createElement third argument is always an array as per docs
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
As per the docs, https://reactjs.org/docs/react-api.html#createelement
CreateElement takes third argument as an array. There is a mixed behaviour. Please have a look here typeof Children is Array for more than one children and typeof children is object if there is only one child.)
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 with the React.createElement section of the linked React documentation and compare its statement about the third argument with the behavior described in the linked issue. Confirm whether the documentation or the behavior needs correction; done means the documented contract and observed behavior are consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100