reactjs / reactjs/react.dev

[Typo]: note should be object or string

Open
#6,933 0 comments 0 reactions 0 assignees View on GitHub

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

telegram-cloud-photo-size-2-5408966140979437551-y
The code example in server-components page is not correct

Page

https://react.dev/reference/rsc/server-components#server-components-with-a-server

Details

telegram-cloud-photo-size-2-5408966140979437551-y
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.