reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
10.86k stars 7.45k forks source link

[Typo]: note should be object or string #6933

Open kamol-ayyub opened 3 weeks ago

kamol-ayyub commented 3 weeks ago

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.