[Typo]: note should be object or string
Open
Nobody has claimed this yet.
type: typos
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
Summary
The code example in server-components page is not correct
Page
https://react.dev/reference/rsc/server-components#server-components-with-a-server
Details
In this code example, if note is object, it shouldn't be renders in p tag and note's default value should not be empty string, if it's string, we cannot pass as note.authorId as prop to the Author component.
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
Open the server-components documentation page at the linked section and inspect the code example involving note and Author. Compare the displayed types and props for consistency, then verify that the corrected example renders and describes note unambiguously.
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
- 52/100