Summary of changes:
See <https://github.com/reactjs/react.dev/pull/6417>.
There is one exception though. The error message
“Rendered fewer hooks than expected” from React is indeed "hooks"
so I kept as-is. Shall we change the error message from React?
Co-authored-by: xuan.huang <xuan.huang@bytedance.com>
Summary of changes:
"Server Action", like "Effect", is a React-specific notion
that would be benefited from captailization to be distinguished
from its genertic meaning.
It seems like [Next doc](https://nextjs.org/docs/app/api-reference/functions/server-actions)
has also adopted such connventions and we should probably do the same.
Co-authored-by: xuan.huang <xuan.huang@bytedance.com>
* Edits for new "use client" content
* Apply suggestions from code review
Co-authored-by: Luna <lunaleaps@gmail.com>
---------
Co-authored-by: Luna <lunaleaps@gmail.com>
* Add basic reference pages for use client and server
I guess this turned into a bit more of an FAQ but I think it's useful to have this written down in a canonical place.
* Oops, push final tweaks