Open kamol-ayyub opened 5 months ago
The code example in server-components page is not correct
https://react.dev/reference/rsc/server-components#server-components-with-a-server
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.
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.