OneBite.Dev - Coding blog in a bite size

How to add inline script in NextJS

here is How to add inline script in your NextJS project

Even in React application, we need vanilla javascript sometimes.

Here is how to add an inline script in NextJS project

import Script from "next/script";

<Script id="script-id">
  {
    `console.log('123')`
  }
</Script>
nextjs