Socket
Socket
Sign inDemoInstall

@tizy/cookie_tizy_react

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tizy/cookie_tizy_react

GDPR (General Data Protection Regulation) compliance support tool developed for React


Version published
Maintainers
1
Created

Readme

Source

CookieTizy

CookieTizy is a GDPR (General Data Protection Regulation) compliance support tool

Installation

This package is an offical extension of the default package to @tizy/cookie_tizy to facilitate integration with React It works with a simple configuration and React.Context

First, go to cookie.tizy.fr and subscribe to a free or premium plan to obtain a token and register your website.

Using npm:

npm install @tizy/cookie_tizy @tizy/cookie_tizy_react

Usage

These examples are defined with the Next.js framework, but they can be adapted to all React applications.

import {CookieTizyProvider} from '@tizy/cookie_tizy_react';

const cookieTizyConfig = {
    consentsFormList: []
    cookiesList: [],
    token: 'your token here'
}

return (
    <CookieTizyProvider cookieTizyConfig={cookieTizyConfig}>
        <Component {...pageProps}/>
        <div id="cookietizy" className="cookietizy" />
    </CookieTizyProvider>
)
import {CookieTizyContext} from '@tizy/cookie_tizy_react';

export const FormComponent = () => {
    const cookie = useContext(CookieTizyContext);
    useEffect(() => {
        if (!!cookie) {
            cookie.initForm();
        }
    }, [cookie])
    
    return (
        ...
        <div className="cookietizyForm" data-cookie-id="contact" />
        ...
    )
};

Documentation

After subscribing to a plan and registering your website on cookie.tizy.fr, you will be able to download the complete documentation in the final step.

Keywords

FAQs

Last updated on 31 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc