Skip to content

ctbucha/bs-react-cookie-consent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-react-cookie-consent

BuckleScript bindings for react-cookie-consent.

Installation

npm install --save @ctbucha/bs-react-cookie-consent

Then add @ctbucha/bs-react-cookie-consent to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["@ctbucha/bs-react-cookie-consent"]
}

Usage

/* App.re */
let component = ReasonReact.statelessComponent("App");

let make = _children => {
  ...component,
  render: _self =>
    <CookieConsent location="bottom">
      (ReasonReact.string("This website uses cookies to enhance the user experience."))
    </CookieConsent>,
};

About

Bucklescript bindings for react-cookie-consent.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages