Skip to main content
How to install the Termly cookie banner using React
Updated over 6 months ago

Termly can be installed on a site using React.js simply by adding the cookie banner script into the head of your index.html, also called the template.

Alternatively, you can make a React component that renders the <script> tag for the cookie banner:

// File: CookieBanner.jsxexport default function CookieBanner() {      return      // your cookie banner embed script here}
Did this answer your question?