Last active
May 12, 2022 21:14
-
-
Save GarySwift/ceca6a4e5b4af484a06caeb6c6104b1a to your computer and use it in GitHub Desktop.
Cookie Reusable Component in ES6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { cookies } from './lib/cookies'; | |
import modal from './lib/modal'; | |
$(document).ready(function() { | |
modal(cookies); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function(cookies) { | |
cookies.checkCookie(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment