updated the example :)

This commit is contained in:
Rick van Lieshout 2018-05-31 20:08:31 +02:00
parent a06d5c967c
commit e4d6a8eb7b
3 changed files with 9 additions and 4 deletions

6
package-lock.json generated
View File

@ -8830,9 +8830,9 @@
}
},
"react-cookie-consent": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-1.1.1.tgz",
"integrity": "sha512-if/MPvGZg7tBL9vy9+h5LZh4s8hEA7/dBM+By+CzrujGsjiBgJS9G8k4NH/9SQjzoIp5dsEKY3fLc5FlDXQArg==",
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-1.1.2.tgz",
"integrity": "sha512-ntEW3y+0q9xXx9yebc92sS97MCnscnJpG6dML2/IKRt2iKgt1a50H5Xy72bwQQ970qAMLN+3D3w0ogcVFLkpPg==",
"requires": {
"js-cookie": "^2.2.0",
"react": "^16.4.0"

View File

@ -5,7 +5,7 @@
"homepage": "https://mastermindzh.github.io/react-cookie-consent",
"dependencies": {
"react": "^16.4.0",
"react-cookie-consent": "^1.1.1",
"react-cookie-consent": "^1.1.2",
"react-dom": "^16.4.0",
"react-scripts": "1.1.4"
},

View File

@ -18,8 +18,13 @@ class App extends Component {
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
<p>
<strong>Note:</strong> by default the bar will come back even with a cookie set, remove "debug=&#123;true&#125;" in App.js to enable the real bar behavior.
</p>
<CookieConsent
onAccept={() => {alert("yay!")}}
debug={true}
>
This website uses cookies to enhance the user experience.{" "}
<span style={{ fontSize: "10px" }}>