How to use the react-cookie-consent.Cookies.set function in react-cookie-consent

To help you get started, we’ve selected a few react-cookie-consent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Mastermindzh / react-cookie-consent / example / src / App.js View on Github external
render() {

    Cookies.set("test", "nice")

    return (
      <div>
        <header>
          <img alt="logo" src="{logo}">
          <h1>Welcome to React</h1>
        </header>
        <p>
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
         {alert("yay!")}}
        &gt;
          This website uses cookies to enhance the user experience.{" "}
          <span style="{{">
            This bit of text is smaller :O</span></div>

react-cookie-consent

A small, simple and customizable cookie consent bar for use in React applications.

MIT
Latest version published 12 months ago

Package Health Score

66 / 100
Full package analysis