Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.19 KB

readme.md

File metadata and controls

65 lines (51 loc) · 1.19 KB

Next-Supsis

NPM Version

Murat Kirazkaya

Note

Sorry for the advertising, I'm trying to promote my product too. Visit

Scroll down to see library.

Next-Supsis is a library for Supsis integration with Next.js.

Installation

You can install the library using npm:

npm install next-supsis

Usage

Here is an example of how to use the library:

Note: You need to replace YOUR_SUPSIS_API with your Supsis API.

// Layout.tsx
import { Supsis } from "next-supsis";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className="antialiased">
        {children}
        <Supsis src={"YOUR_SUPSIS_API"} />
      </body>
    </html>
  );
}

or if you use javascript

// Layout.jsx
import { Supsis } from "next-supsis";

export default function RootLayout({
  children,
}) {
  return (
    <html lang="en">
      <body className="antialiased">
        {children}
        <Supsis src={"YOUR_SUPSIS_API"} />
      </body>
    </html>
  );
}