Reading React Essentialsfor Nextjs 13.

<RootServerComponent>
   <ClientComponent>
     <ChildServerComponent />
   </ClientComponent>
</RootServerComponent>
import 'server-only';
'use client'; import { ThemeProvider } from 'acme-theme';
import { AuthProvider } from 'acme-auth'; 

export function Providers({ children }) { 
  return ( 
  <ThemeProvider> 
    <AuthProvider>{children}</AuthProvider> 
  </ThemeProvider> );
  }

Next js Framework Environment Variables