React Server Components

Type hardening and performance improvements
(#36425 by @eps1lon and @unstubbable)