Next.js start اور demo

جب آپ Next اڈاپٹر اور React رن ٹائم کو ایک ساتھ استعمال کرنا چاہیں تو یہ ٹریک استعمال کریں۔

انسٹال کریں

bash
npm install @18ways/next @18ways/react

بنیادی ترجمہ playground

ایڈیٹ ایبل playground سورس
app/layout.tsx
import './styles.css';
import type { ReactNode } from 'react';
import { WaysRoot } from '@18ways/next/server';

// Make sure this layout stays server-rendered so WaysRoot can read the request.
export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en">
      <body className="next-demo-body">
        <WaysRoot>{children}</WaysRoot>
      </body>
    </html>
  );
}

Preview
Next.js Start & Demo