0.1.4 • Published 2 years ago

ml-cookie-control v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ml-cookie-control

Cookie control react component

Features

  • ES6 syntax, managed with Prettier + Eslint and Stylelint
  • Unit testing via Jest
  • React 17

Install

yarn add ml-cookie-control
// or 
npm i ml-cookie-control

Requirements

  • Node.js v14.x or later
  • React 17

Usage

// pages/_document.js
import { CookieControl } from 'ml-cookie-control';

import { Html, Head, Main, NextScript } from 'next/document'

export default function Document() {
  return (
    <Html>
      <Head>
        <CookieControl domainScriptId={process.env.DOMAIN_SCRIPT_ID} />
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  )
}
8.571.4

2 years ago

6.569.4

2 years ago

5.568.4

2 years ago

1.564.4

2 years ago

9.572.4

2 years ago

7.570.4

2 years ago

4.567.4

2 years ago

2.565.4

2 years ago

0.1.4

2 years ago

3.566.4

2 years ago

0.0.13

2 years ago

9.571.3

2 years ago

8.570.3

2 years ago

7.569.3

2 years ago

6.568.3

2 years ago

5.567.3

2 years ago

4.566.3

2 years ago

3.565.3

2 years ago

2.564.3

2 years ago

1.563.3

2 years ago